feat(ui): page détail d'une carte avec édition (F-09)
CardDetail affiche question, réponse révélée, thème et tags, avec liens Modifier et retour à la liste. Page /cards/[id] qui la monte.
This commit is contained in:
1 parent
b030896e06
commit
9224fe003d
3 files changed
+158
No files matched your search
@@ -0,0 +1,19 @@
|
||||
import type { Metadata } from 'next'
|
||||
import { CardDetail } from '@/components/card-detail'
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: 'Carte',
|
||||
}
|
||||
|
||||
export default async function CardDetailPage({
|
||||
params,
|
||||
}: {
|
||||
params: Promise<{ id: string }>
|
||||
}) {
|
||||
const { id } = await params
|
||||
return (
|
||||
<main className="mx-auto max-w-3xl px-4 py-8">
|
||||
<CardDetail cardId={id} />
|
||||
</main>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user