Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-05-07 13:32:35 +03:00
co-authored by Copilot
parent 4faafe6667
commit c7eb23dd3f
17 changed files with 668 additions and 120 deletions
@@ -140,33 +140,27 @@ export default function VehicleMileagePage() {
return (
<div className="flex flex-col gap-4">
<DashboardPage
headerProps={{
title: 'Mileage',
actions: (
<Button onClick={handleCreate}>
<Plus className="size-4" />
Add Mileage
</Button>
),
}}
>
<Card>
<CardContent>
<DataTable
slots={{
actions: <Button onClick={handleCreate}>
<Plus className="size-4" />
Add Mileage
</Button>
}}
columns={columns}
data={records}
pagination={pagination}
sorting={[]}
onChange={() => {}}
onChange={() => { }}
isLoading={isLoading}
/>
</CardContent>
</Card>
</DashboardPage>
<Dialog open={dialogOpen} onOpenChange={setDialogOpen}>
<DialogContent className="min-w-md">