Skip to content

Commit a900867

Browse files
committed
Comentar código relacionado à recuperação de postagens e exibição de título no componente PostDetails
1 parent 4e4617b commit a900867

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

src/app/posts/[slug]/page.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
import Header from '@/components/header'
2-
import NotFound from '@/components/not-found'
3-
4-
import { getBySlug, getAll } from '@/data/posts'
52

63
interface Props {
74
params: { slug: string }
@@ -18,16 +15,16 @@ interface Props {
1815
// }
1916

2017
export default async function PostDetails({ params }: Props) {
21-
const post = await getBySlug(params.slug)
18+
//const post = await getBySlug(params.slug)
2219

23-
if (!post) return <NotFound />
20+
//if (!post) return <NotFound />
2421

2522
return (
2623
<div>
2724
<time className="mb-1 text-sm font-normal leading-none text-neutral-500">
2825
{/* {post?.created_at?.toString()} */}
2926
</time>
30-
<Header backButton title={post?.title} />
27+
<Header backButton title={/*post?.title*/ 'teste'} />
3128
</div>
3229
)
3330
}

0 commit comments

Comments
 (0)