From bbbfa91aa992a01ba50223c3e3faa69acdf8f1d3 Mon Sep 17 00:00:00 2001 From: "tai.truong" Date: Thu, 22 Feb 2024 14:15:44 +0700 Subject: [PATCH 1/3] fix: show wrong time format --- src/components/Account/OverviewTab/index.tsx | 2 +- .../CIPComplianceModal/CIP25Modal.tsx | 29 ++++++++++--------- src/locales/en/translation.json | 3 +- 3 files changed, 18 insertions(+), 16 deletions(-) diff --git a/src/components/Account/OverviewTab/index.tsx b/src/components/Account/OverviewTab/index.tsx index 34bedef15f..e74729e6ed 100644 --- a/src/components/Account/OverviewTab/index.tsx +++ b/src/components/Account/OverviewTab/index.tsx @@ -98,7 +98,7 @@ const OverviewTab = () => { /> {openModal && } diff --git a/src/components/CIPComplianceModal/CIP25Modal.tsx b/src/components/CIPComplianceModal/CIP25Modal.tsx index be90aa65ed..83ab397c48 100644 --- a/src/components/CIPComplianceModal/CIP25Modal.tsx +++ b/src/components/CIPComplianceModal/CIP25Modal.tsx @@ -19,7 +19,8 @@ import { CIPPropertyTable, TokenLabel, ButtonContainer, - CIPLabel + CIPLabel, + BoxTooltip } from "./styles"; import ViewAllButtonExternal from "../commons/ViewAllButtonExternal"; @@ -105,19 +106,19 @@ const CIP25Modal: React.FC = (props) => { ) : ( - - - - {r.value} - - + {typeof r.value === "string" ? r.value : JSON.stringify(r.value)}} + > + + {typeof r.value === "string" ? r.value : JSON.stringify(r.value)} + ) }, diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json index f0ffc6d014..a18cee1925 100644 --- a/src/locales/en/translation.json +++ b/src/locales/en/translation.json @@ -1011,5 +1011,6 @@ "bolnisi.titleModal": "Georgian Wine", "bolnisi.verifyErrorTooltip": "A connection to the verification service could not be established.", "bolnisi.verifyErrorTooltipTryAgain": "Please, refresh the page to try again.", - "bolnisi.verifyError": "Verification Unavailable" + "bolnisi.verifyError": "Verification Unavailable", + "account.myProfile":"My Profile" } From 9c70d4a7af7bed3d60a85d74af86b6819dd453ab Mon Sep 17 00:00:00 2001 From: "tai.truong" Date: Thu, 22 Feb 2024 16:06:17 +0700 Subject: [PATCH 2/3] fix: show cip25 --- src/components/CIPComplianceModal/CIP25Modal.tsx | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/components/CIPComplianceModal/CIP25Modal.tsx b/src/components/CIPComplianceModal/CIP25Modal.tsx index 83ab397c48..e18abc7600 100644 --- a/src/components/CIPComplianceModal/CIP25Modal.tsx +++ b/src/components/CIPComplianceModal/CIP25Modal.tsx @@ -107,7 +107,7 @@ const CIP25Modal: React.FC = (props) => { ) : ( {typeof r.value === "string" ? r.value : JSON.stringify(r.value)}} + title={{typeof r.value === "object" ? JSON.stringify(r.value) : r.value}} > = (props) => { maxWidth={120} fontSize={14} > - {typeof r.value === "string" ? r.value : JSON.stringify(r.value)} + {typeof r.value === "object" && r.value !== null ? JSON.stringify(r.value) : r.value} ) @@ -174,12 +174,11 @@ const CIP25Modal: React.FC = (props) => { return ( + {t("cip25.modal.title")} @@ -188,8 +187,7 @@ const CIP25Modal: React.FC = (props) => { } > - {t("cip25.modal.subtitle")} - + {t("cip25.modal.subtitle")} {tokenMaps.map((token, index) => ( {token.tokenName && ( From c19f501e1dd9e978a29ba0288fcc25286e081eef Mon Sep 17 00:00:00 2001 From: "tai.truong" Date: Thu, 22 Feb 2024 16:08:36 +0700 Subject: [PATCH 3/3] fix: update show cip 60 --- src/components/CIPComplianceModal/CIP60Modal.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/CIPComplianceModal/CIP60Modal.tsx b/src/components/CIPComplianceModal/CIP60Modal.tsx index 6e8bde129b..efa56119d3 100644 --- a/src/components/CIPComplianceModal/CIP60Modal.tsx +++ b/src/components/CIPComplianceModal/CIP60Modal.tsx @@ -158,7 +158,7 @@ const CIP60Modal: React.FC = (props) => { ) : ( - + = (props) => { maxWidth={120} fontSize={14} > - {typeof r.value === "object" ? JSON.stringify(r.value) : r.value} + {typeof r.value === "object" && r.value !== null ? JSON.stringify(r.value) : r.value} );