diff --git a/app/(ui)/deck/[id]/history/page.tsx b/app/(ui)/deck/[id]/history/page.tsx index b90db39..aec0d11 100644 --- a/app/(ui)/deck/[id]/history/page.tsx +++ b/app/(ui)/deck/[id]/history/page.tsx @@ -9,9 +9,16 @@ import { DeckHistoryList } from "@/app/_components/deck/deck-history-list"; interface DeckHistoryPageProps { params: Promise<{ id: string }>; + searchParams: Promise<{ revision?: string }>; } -async function DeckHistoryContent({ id }: { id: string }) { +async function DeckHistoryContent({ + id, + highlightId, +}: { + id: string; + highlightId?: string | undefined; +}) { const [deck, session] = await Promise.all([ prisma.deck.findUnique({ where: { id }, @@ -40,8 +47,8 @@ async function DeckHistoryContent({ id }: { id: string }) { {deck.name} · History
- Changes to this deck, newest first. Edits within 5 minutes of each - other are grouped into a single revision. + Changes to this deck, newest first. Edits by the same player within + 5 minutes are grouped into a single revision.
@@ -49,12 +56,16 @@ async function DeckHistoryContent({ id }: { id: string }) { deckId={deck.id} revisions={revisions} isOwner={isOwner} + highlightId={highlightId} /> ); } -export default function DeckHistoryPage({ params }: DeckHistoryPageProps) { +export default function DeckHistoryPage({ + params, + searchParams, +}: DeckHistoryPageProps) { return (