From 696680bd8bad551346ca8a8cf7d160ee9e13f0cf Mon Sep 17 00:00:00 2001 From: Carlos Monastyrski Date: Thu, 30 Oct 2025 01:51:52 -0300 Subject: [PATCH] Lint fix --- .../components/CertificatesTable.tsx | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/frontend/src/pages/cert-manager/CertificatesPage/components/CertificatesTable.tsx b/frontend/src/pages/cert-manager/CertificatesPage/components/CertificatesTable.tsx index 85cb118db..2fd23dd40 100644 --- a/frontend/src/pages/cert-manager/CertificatesPage/components/CertificatesTable.tsx +++ b/frontend/src/pages/cert-manager/CertificatesPage/components/CertificatesTable.tsx @@ -175,11 +175,11 @@ export const CertificatesTable = ({ handlePopUpOpen }: Props) => { const canShowAutoRenewalIcon = Boolean( certificate.profileId && - certificate.hasPrivateKey !== false && - !certificate.renewedByCertificateId && - !isRevoked && - !isExpired && - !isExpiringWithinDay + certificate.hasPrivateKey !== false && + !certificate.renewedByCertificateId && + !isRevoked && + !isExpired && + !isExpiringWithinDay ); // Still need originalDisplayName for other uses in the component @@ -255,7 +255,7 @@ export const CertificatesTable = ({ handlePopUpOpen }: Props) => { ttlDays: Math.ceil( (new Date(certificate.notAfter).getTime() - new Date(certificate.notBefore).getTime()) / - (24 * 60 * 60 * 1000) + (24 * 60 * 60 * 1000) ) }); }} @@ -341,20 +341,20 @@ export const CertificatesTable = ({ handlePopUpOpen }: Props) => { { const notAfterDate = new Date(certificate.notAfter); const notBeforeDate = certificate.notBefore ? new Date(certificate.notBefore) : new Date( - notAfterDate.getTime() - 365 * 24 * 60 * 60 * 1000 - ); + notAfterDate.getTime() - 365 * 24 * 60 * 60 * 1000 + ); const ttlDays = Math.max( 1, Math.ceil( (notAfterDate.getTime() - notBeforeDate.getTime()) / - (24 * 60 * 60 * 1000) + (24 * 60 * 60 * 1000) ) ); handlePopUpOpen("manageRenewal", { @@ -404,7 +404,7 @@ export const CertificatesTable = ({ handlePopUpOpen }: Props) => { { await handleDisableAutoRenewal( @@ -441,7 +441,7 @@ export const CertificatesTable = ({ handlePopUpOpen }: Props) => { { handlePopUpOpen("renewCertificate", { @@ -503,7 +503,7 @@ export const CertificatesTable = ({ handlePopUpOpen }: Props) => { handlePopUpOpen("revokeCertificate", {