From 35ccf82749a9f8c6e0fd21dcfbfa5cb4b6025745 Mon Sep 17 00:00:00 2001 From: Oleksandr Slobodian <129727832+OleksandrSPV@users.noreply.github.com> Date: Fri, 26 Jul 2024 15:24:46 +0300 Subject: [PATCH] Add cerificates sorting by type (#181) Co-authored-by: alex-slobodian --- src/components/certificates-list/CertificatesList.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/certificates-list/CertificatesList.tsx b/src/components/certificates-list/CertificatesList.tsx index c87175ed..c4c30853 100644 --- a/src/components/certificates-list/CertificatesList.tsx +++ b/src/components/certificates-list/CertificatesList.tsx @@ -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"; @@ -138,7 +138,9 @@ export const CertificatesList: React.FunctionComponent< - {t("certificates.list.header.type")} + + {renderSortTitle("type", "certificates.list.header.type")} + {renderSortTitle("label", "certificates.list.header.name")}