updates on the milers page and name change
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user