Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ORV2-2332 Sort Vehicle Inventory #1440

Merged
merged 11 commits into from
Jun 20, 2024
40 changes: 20 additions & 20 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const CommonVehicleColumnDefinition: MRT_ColumnDef<Vehicle>[] = [
{
accessorKey: "plate",
header: "Plate",
filterVariant: "multi-select",
},
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -220,13 +220,13 @@ export const List = memo(
columns: newColumns,
initialState: {
...defaultTableInitialStateOptions,
sorting: [{ id: "createdDateTime", desc: true }],
},
state: {
...defaultTableStateOptions,
isLoading: isPending,
showAlertBanner: isError,
showProgressBars: isFetching,
sorting: [{ id: "createdDateTime", desc: true }],
columnVisibility: { powerUnitId: false, trailerId: false },
rowSelection: rowSelection,
},
Expand All @@ -240,6 +240,7 @@ export const List = memo(
}
},
onRowSelectionChange: setRowSelection,
enableMultiSort: true,
renderEmptyRowsFallback: () => <NoRecordsFound />,
renderRowActions: useCallback(
({ row }: { row: MRT_Row<Vehicle> }) => (
Expand Down