mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-28 05:30:55 +00:00
vehicle
This commit is contained in:
@@ -48,7 +48,7 @@ const FleetRecordActions = ({
|
||||
<Tooltip label="Edit">
|
||||
<ActionIcon
|
||||
variant="light"
|
||||
color="blue"
|
||||
color="teal"
|
||||
size="md"
|
||||
radius="md"
|
||||
onClick={() => onEdit(record)}
|
||||
@@ -81,14 +81,14 @@ const FleetRecordActions = ({
|
||||
</Tooltip>
|
||||
) : null}
|
||||
<Tooltip label="Edit">
|
||||
<ActionIcon variant="light" color="blue" size="md" radius="md" onClick={() => onEdit(record)}>
|
||||
<ActionIcon variant="light" color="teal" size="md" radius="md" onClick={() => onEdit(record)}>
|
||||
<Pencil size={16} />
|
||||
</ActionIcon>
|
||||
</Tooltip>
|
||||
<Menu position="bottom-end" withinPortal>
|
||||
<Menu.Target>
|
||||
<Tooltip label="More actions">
|
||||
<ActionIcon variant="light" color="gray" size="md" radius="md">
|
||||
<ActionIcon variant="light" color="green" size="md" radius="md">
|
||||
<MoreHorizontal size={16} />
|
||||
</ActionIcon>
|
||||
</Tooltip>
|
||||
|
||||
@@ -333,8 +333,8 @@ const FleetResourcePage = () => {
|
||||
key={option.value}
|
||||
size="xs"
|
||||
radius="md"
|
||||
variant={filter.value === option.value ? "filled" : "light"}
|
||||
color={filter.value === option.value ? "green" : "gray"}
|
||||
variant={filter.value === option.value ? "filled" : "outline"}
|
||||
color="green"
|
||||
onClick={() => {
|
||||
setListFilterValues((prev) => ({
|
||||
...prev,
|
||||
@@ -359,8 +359,8 @@ const FleetResourcePage = () => {
|
||||
key={option.value}
|
||||
size="xs"
|
||||
radius="md"
|
||||
variant={statusFilter === option.value ? "filled" : "light"}
|
||||
color={statusFilter === option.value ? "green" : "gray"}
|
||||
variant={statusFilter === option.value ? "filled" : "outline"}
|
||||
color="green"
|
||||
onClick={() => setStatusFilter(option.value)}
|
||||
>
|
||||
{option.label}
|
||||
|
||||
@@ -401,12 +401,13 @@ export const FLEET_RESOURCES: FleetResourceConfig[] = [
|
||||
searchKeys: ["plateNumber", "registrationNumber", "manufacturer", "model", "vehicleType", "status"],
|
||||
columns: [
|
||||
{ id: "plateNumber", header: "Plate Number", accessorKey: "plateNumber", format: "code" },
|
||||
{ id: "vehicleType", header: "Type", accessorKey: "vehicleType" },
|
||||
{ id: "registrationNumber", header: "Registration", accessorKey: "registrationNumber" },
|
||||
{ id: "manufacturer", header: "Manufacturer", accessorKey: "manufacturer" },
|
||||
{ id: "model", header: "Model", accessorKey: "model" },
|
||||
{ id: "vehicleType", header: "Type", accessorKey: "vehicleType" },
|
||||
{ id: "year", header: "Year", accessorKey: "year", format: "number" },
|
||||
{ id: "fuelType", header: "Fuel Type", accessorKey: "fuelType" },
|
||||
{ id: "capacity", header: "Capacity", accessorKey: "capacity", format: "number" },
|
||||
{ id: "capacity", header: "Capacity (tons)", accessorKey: "capacity", format: "number" },
|
||||
{ id: "status", header: "Status", accessorKey: "status", format: "statusBadge" },
|
||||
],
|
||||
formFields: [
|
||||
|
||||
Reference in New Issue
Block a user