pages Page to Index

This commit is contained in:
tmshv committed 2020-03-21 20:03:31 +03:00
1 parent c1a3af3a3e
commit a13b642979
4 files changed
+8 -8

No files matched your search

+2 -2
View File
@@ -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,