pages Page to Index
This commit is contained in:
1 parent
c1a3af3a3e
commit
a13b642979
4 files changed
+8
-8
No files matched your search
+2
-2
@@ -8,13 +8,13 @@ import { getPagesCardsByTags } from 'src/rest'
|
||||
import { NextPage } from 'next'
|
||||
import { IMeta, PageCardData, PageCardDto } from 'src/types'
|
||||
|
||||
interface IProps {
|
||||
type Props = {
|
||||
title: string
|
||||
meta: IMeta
|
||||
items: PageCardDto[]
|
||||
}
|
||||
|
||||
const Index: NextPage<IProps> = props => {
|
||||
const Index: NextPage<Props> = props => {
|
||||
const items = props.items.map<PageCardData>(item => ({
|
||||
url: item.url,
|
||||
title: item.title,
|
||||
|
||||
Reference in new issue
Block a user