Skip to content

Commit

Permalink
ORV2-2332 Sort Vehicle Inventory (#1440)
Browse files Browse the repository at this point in the history
Co-authored-by: Praveen Raju <[email protected]>
  • Loading branch information
krishnan-aot and praju-aot authored Jun 20, 2024
1 parent 080725f commit 0aa170f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 22 deletions.
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

0 comments on commit 0aa170f

Please sign in to comment.