summaryrefslogtreecommitdiff
path: root/frontend/app/history/page.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/app/history/page.tsx')
-rw-r--r--frontend/app/history/page.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/frontend/app/history/page.tsx b/frontend/app/history/page.tsx
index 9ccba27..7af0a9e 100644
--- a/frontend/app/history/page.tsx
+++ b/frontend/app/history/page.tsx
@@ -2,14 +2,15 @@ import { Drive_log } from "@/lib/drive_server"
2import { HistoryView } from "@/components/history/HistoryView" 2import { HistoryView } from "@/components/history/HistoryView"
3 3
4interface HistoryPageProps { 4interface HistoryPageProps {
5 searchParams: { [key: string]: string | string[] | undefined } 5 searchParams: Promise<{ [key: string]: string | string[] | undefined }>
6} 6}
7 7
8export default async function HistoryPage({ searchParams }: HistoryPageProps) { 8export default async function HistoryPage({ searchParams }: HistoryPageProps) {
9 const logEntries = await Drive_log() 9 const logEntries = await Drive_log()
10 const resolvedSearchParams = await searchParams
10 11
11 // Parse page parameter (default to 0) 12 // Parse page parameter (default to 0)
12 const page = parseInt((searchParams.page as string) || '0', 10) 13 const page = parseInt((resolvedSearchParams.page as string) || '0', 10)
13 const pageSize = 50 14 const pageSize = 50
14 15
15 // Sort by timestamp descending (most recent first) 16 // Sort by timestamp descending (most recent first)