Skip to content

Commit

Permalink
Add cerificates sorting by type (#181)
Browse files Browse the repository at this point in the history
Co-authored-by: alex-slobodian <[email protected]>
  • Loading branch information
OleksandrSPV and aleksandr-slobodian authored Jul 26, 2024
1 parent 232ad5a commit 35ccf82
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/certificates-list/CertificatesList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ import styles from "./styles/index.module.scss";

type TSortColumnName = keyof Pick<
CertificateProps,
"label" | "serialNumber" | "notAfter"
"label" | "serialNumber" | "notAfter" | "type"
>;
type TSortColumnDir = "asc" | "desc";

Expand Down Expand Up @@ -138,7 +138,9 @@ export const CertificatesList: React.FunctionComponent<
<Table className={clsx(styles.list_table, className)}>
<TableHeader>
<TableRow>
<TableHead>{t("certificates.list.header.type")}</TableHead>
<TableHead>
{renderSortTitle("type", "certificates.list.header.type")}
</TableHead>
<TableHead>
{renderSortTitle("label", "certificates.list.header.name")}
</TableHead>
Expand Down

0 comments on commit 35ccf82

Please sign in to comment.