Skip to content

Commit

Permalink
fix(sort and column viz): Adjust the default sort and column viz
Browse files Browse the repository at this point in the history
  • Loading branch information
mdial89f committed Mar 18, 2024
1 parent cd95e07 commit 627eaff
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export const useOsUrl = () => {
search: "",
tab: "spas",
pagination: { number: 0, size: 25 },
sort: { field: "finalDispositionDate", order: "desc" },
sort: { field: "submissionDate", order: "desc" },
},
});
};
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export const useSpaTableColumns = (): OsTableColumn[] => {
{
field: "finalDispositionDate",
label: "Final Disposition",
hidden: true,
transform: (data) =>
data?.finalDispositionDate
? formatSeatoolDate(data.finalDispositionDate)
Expand Down
10 changes: 10 additions & 0 deletions src/services/ui/src/features/dashboard/Lists/waivers/consts.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,16 @@ export const useWaiverTableColumns = (): OsTableColumn[] => {
: BLANK_VALUE,
cell: renderCellDate("submissionDate"),
},
{
field: "finalDispositionDate",
label: "Final Disposition",
hidden: true,
transform: (data) =>
data?.finalDispositionDate
? formatSeatoolDate(data.finalDispositionDate)
: BLANK_VALUE,
cell: renderCellDate("finalDispositionDate"),
},
{
field: "origin",
label: "Submission Source",
Expand Down

0 comments on commit 627eaff

Please sign in to comment.