🧹 add shared PageHeader to the page
Browse files at this commit7122d71744bea23bd00bcfe91b997c19fba1e4d6Parent: 85410a9- refactor
- 🧹 add shared PageHeader to the page
1 changed file +3 -1
src/pages/work-log-page.tsxmodified+3 -1
| @@ -5,6 +5,7 @@ import { postWorkCheckIn } from "@/api/work"; | ||
| 5 | 5 | import { postWorkCheckOut } from "@/api/work"; |
| 6 | 6 | import { formatApiError } from "@/api/client"; |
| 7 | 7 | import { RouteGuard } from "@/components/layout/route-guard"; |
| 8 | +import { PageHeader } from "@/components/layout/page-header"; | |
| 8 | 9 | import { Alert } from "@/components/ui/alert"; |
| 9 | 10 | import { Badge } from "@/components/ui/badge"; |
| 10 | 11 | import { Button } from "@/components/ui/button"; |
| @@ -97,6 +98,8 @@ function WorkLogContent() { | ||
| 97 | 98 | |
| 98 | 99 | return ( |
| 99 | 100 | <div class="space-y-6"> |
| 101 | + <PageHeader title={t("work.title")} description={t("work.subtitle")} /> | |
| 102 | + | |
| 100 | 103 | <Show when={flash()}> |
| 101 | 104 | <Alert variant="success">{flash()}</Alert> |
| 102 | 105 | </Show> |
| @@ -129,7 +132,6 @@ function WorkLogContent() { | ||
| 129 | 132 | > |
| 130 | 133 | <DataTable |
| 131 | 134 | title={t("work.entries")} |
| 132 | - description={t("work.subtitle")} | |
| 133 | 135 | actions={<Badge variant="secondary" class="mono rounded-lg px-3 py-1">{total()}</Badge>} |
| 134 | 136 | columns={columns()} |
| 135 | 137 | data={pageItems()} |