Skip to content

Commit

Permalink
default sort
Browse files Browse the repository at this point in the history
  • Loading branch information
dwarfered committed Jan 18, 2025
1 parent 3aabb76 commit ebb9e56
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions components/enterprise-applications/SamlStatusGrid.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,16 +109,16 @@ export default function SamlStatusGrid() {
);
}

// type SortDirection = "ascending" | "descending";
// interface SortState {
// sortColumn?: string;
// sortDirection: SortDirection;
// }
type SortDirection = "ascending" | "descending";
interface SortState {
sortColumn: string | undefined;
sortDirection: SortDirection;
}

// const defaultSortState: SortState = {
// sortColumn: "warnCredential",
// sortDirection: "ascending",
// };
const newSortState: SortState = {
sortColumn: "expiry",
sortDirection: "ascending",
};

return (
<div>
Expand Down Expand Up @@ -153,7 +153,7 @@ export default function SamlStatusGrid() {
columns={columns}
sortable
getRowId={(item) => item.displayName}
// defaultSortState={defaultSortState}
defaultSortState={newSortState}
style={{ marginBottom: "10px" }}
>
<DataGridHeader>
Expand Down

0 comments on commit ebb9e56

Please sign in to comment.