updates on the milers page and name change

This commit is contained in:
2026-08-28 13:00:05 +05:30
parent fbf1b31cf7
commit a4cc06d516
6 changed files with 44 additions and 31 deletions

View File

@@ -159,11 +159,11 @@ export default function Riders() {
cell: (row) => (
<div className="flex justify-end gap-1">
<IconButton
label="Edit rider"
label="Edit miler"
icon={Pencil}
variant="ghost"
size="sm"
onClick={() => navigate('/doormile/riders/edit', { state: { rider: row } })}
onClick={() => navigate('/doormile/milers/edit', { state: { rider: row } })}
/>
<IconButton
label="Assign vehicle"
@@ -192,7 +192,7 @@ export default function Riders() {
size="sm"
onClick={() => setLogsRow(row)}
/>
<IconButton label="Block rider" icon={Ban} variant="ghost" size="sm" onClick={() => setBlockRow(row)} />
<IconButton label="Block miler" icon={Ban} variant="ghost" size="sm" onClick={() => setBlockRow(row)} />
</div>
),
},
@@ -204,11 +204,11 @@ export default function Riders() {
<Stack space="lg">
<PageHeader
icon={Bike}
title="Riders"
title="Milers"
subtitle="Who is on the road, what they are on, and where they are"
actions={
<Button onClick={() => navigate('/doormile/riders/create')}>
<Plus className="mr-1.5 h-4 w-4" /> New rider
<Button onClick={() => navigate('/doormile/milers/create')}>
<Plus className="mr-1.5 h-4 w-4" /> New miler
</Button>
}
/>
@@ -217,7 +217,7 @@ export default function Riders() {
<KpiCard
icon={Users}
value={summary?.total ?? counts.all}
label="Total riders"
label="Total milers"
tone="brand"
index={0}
loading={isLoading}