fix type
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
'use client'
|
||||
import { Profile, Calendar } from 'iconsax-react'
|
||||
import { NextPage } from 'next'
|
||||
import { FC } from 'react'
|
||||
import Image from 'next/image'
|
||||
// import MostVisited from '../components/MostVisited'
|
||||
import ContactUs from '../components/ContactUs'
|
||||
@@ -12,7 +12,7 @@ type Props = {
|
||||
id: string
|
||||
}
|
||||
|
||||
const SingleBlog: NextPage<Props> = ({ id }) => {
|
||||
const SingleBlogPage: FC<Props> = ({ id }) => {
|
||||
|
||||
const { data } = useGetBlogSingle(id)
|
||||
if (!data) return <div></div>
|
||||
@@ -99,4 +99,4 @@ const SingleBlog: NextPage<Props> = ({ id }) => {
|
||||
)
|
||||
}
|
||||
|
||||
export default SingleBlog
|
||||
export default SingleBlogPage
|
||||
Reference in New Issue
Block a user