remove PageCardData type
This commit is contained in:
1 parent
88bb059094
commit
cb237f66e4
3 files changed
+2
-14
No files matched your search
+1
-1
@@ -5,7 +5,7 @@ import { PageGrid } from 'src/components/PageGrid'
|
||||
import { HudozkaTitle } from 'src/components/HudozkaTitle'
|
||||
import { MetaBuilder } from 'src/lib/meta'
|
||||
import { NextPage } from 'next'
|
||||
import { IMeta, PageCardData, PageCardDto } from 'src/types'
|
||||
import { IMeta, PageCardDto } from 'src/types'
|
||||
import { apiGet } from '@/next-lib'
|
||||
import { createHomeCards } from '@/remote/factory'
|
||||
|
||||
|
||||
@@ -1,13 +1,10 @@
|
||||
import Image from 'next/image'
|
||||
import { ImageSize, PageCardData, PageCardDto } from 'src/types'
|
||||
import { ImageSize, PageCardDto } from 'src/types'
|
||||
import { CardGrid } from '../CardGrid'
|
||||
import { Card, CardLayout } from '../Card'
|
||||
import { Date } from './Date'
|
||||
import { Block } from '../Block'
|
||||
import { Spacer } from '../Spacer'
|
||||
import { imageSrcSet, imageSrc } from 'src/lib/image'
|
||||
import { Button } from '../Button'
|
||||
import { useState, useCallback } from 'react'
|
||||
|
||||
export type PageGridProps = {
|
||||
items: PageCardDto[]
|
||||
|
||||
@@ -8,15 +8,6 @@ export interface IBreadcumbsPart {
|
||||
href: string
|
||||
}
|
||||
|
||||
export type PageCardData = {
|
||||
id: number
|
||||
url: string
|
||||
title: string
|
||||
date: Date
|
||||
featured?: boolean
|
||||
cover?: ImageDefinition
|
||||
}
|
||||
|
||||
export type PageCardDto = {
|
||||
id: number
|
||||
url: string
|
||||
|
||||
Reference in new issue
Block a user