We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e4617b commit a900867Copy full SHA for a900867
1 file changed
src/app/posts/[slug]/page.tsx
@@ -1,7 +1,4 @@
1
import Header from '@/components/header'
2
-import NotFound from '@/components/not-found'
3
-
4
-import { getBySlug, getAll } from '@/data/posts'
5
6
interface Props {
7
params: { slug: string }
@@ -18,16 +15,16 @@ interface Props {
18
15
// }
19
16
20
17
export default async function PostDetails({ params }: Props) {
21
- const post = await getBySlug(params.slug)
+ //const post = await getBySlug(params.slug)
22
23
- if (!post) return <NotFound />
+ //if (!post) return <NotFound />
24
25
return (
26
<div>
27
<time className="mb-1 text-sm font-normal leading-none text-neutral-500">
28
{/* {post?.created_at?.toString()} */}
29
</time>
30
- <Header backButton title={post?.title} />
+ <Header backButton title={/*post?.title*/ 'teste'} />
31
</div>
32
)
33
}
0 commit comments