From c7247d101eb6117314519d054958e5189920975d Mon Sep 17 00:00:00 2001 From: Nico Date: Tue, 31 Dec 2024 16:18:43 +0100 Subject: [PATCH] MEP 31/12/2024 (#967) * Fix: Add distinct warning for expired domains * Fix: Add distinct warning for expired domains * Fix: Add distinct warning for expired domains * Fix: Add distinct warning for expired domains * add distinct warning for expired domains * expiring soon checks if enbaled auto renewal * removing space * fix: paymaster problems (#957) * fix: paymaster problems * add comment --------- Co-authored-by: Aroso Emmanuel Co-authored-by: Aroso Emmanuel Adedeji <57766083+emarc99@users.noreply.github.com> --- .gitignore | 2 +- components/UI/navbar.tsx | 2 +- components/UI/walletConnect.tsx | 2 +- components/identities/identitiesGalleryV1.tsx | 24 +-- public/fonts/poppins/OFL.txt | 186 +++++++++--------- utils/callData/registrationCalls.ts | 2 +- 6 files changed, 109 insertions(+), 109 deletions(-) diff --git a/.gitignore b/.gitignore index 4b340ef1..8053fde5 100644 --- a/.gitignore +++ b/.gitignore @@ -38,4 +38,4 @@ next-env.d.ts yarn.lock -.env \ No newline at end of file +.env diff --git a/components/UI/navbar.tsx b/components/UI/navbar.tsx index 003a4816..710051af 100644 --- a/components/UI/navbar.tsx +++ b/components/UI/navbar.tsx @@ -327,7 +327,7 @@ const Navbar: FunctionComponent = () => {
  • diff --git a/components/UI/walletConnect.tsx b/components/UI/walletConnect.tsx index f072664b..3db1e96b 100644 --- a/components/UI/walletConnect.tsx +++ b/components/UI/walletConnect.tsx @@ -134,4 +134,4 @@ const WalletConnect: FunctionComponent = ({ ); }; -export default WalletConnect; +export default WalletConnect; \ No newline at end of file diff --git a/components/identities/identitiesGalleryV1.tsx b/components/identities/identitiesGalleryV1.tsx index 7eab56c5..22ab88c5 100644 --- a/components/identities/identitiesGalleryV1.tsx +++ b/components/identities/identitiesGalleryV1.tsx @@ -57,28 +57,28 @@ const IdentitiesGalleryV1: FunctionComponent = ({ // Our Indexer
    {identities.map((identity, index) => { + const isExpired = isIdentityExpired(identity); + const isExpiringSoon = isIdentityExpiringSoon(identity); + const expiryDate = timestampToReadableDate(identity?.domain_expiry ?? 0); + return (
    router.push(`/identities/${identity.id}`)} > - {needAutoRenewal?.includes(identity.domain) && - isIdentityExpiringSoon(identity) ? ( + {isExpired ? (
    - +
    + ) : isExpiringSoon && needAutoRenewal?.includes(identity.domain) ? ( +
    + + + +
    ) : null}
    numberToStringHex(s)), - hexToDecimal(txMetadataHash), + numberToStringHex(hexToDecimal(txMetadataHash)), // Reformat hex hash ].flat(), }, ];