From 39bce6b12ef590976fd7d85bd0a7dbaa3367245a Mon Sep 17 00:00:00 2001 From: "tai.truong" Date: Fri, 29 Mar 2024 15:46:17 +0700 Subject: [PATCH] fix: MET-1963 update governance action --- src/components/GovernanceVotes/index.tsx | 70 +++++++++++++++++++++--- src/locales/en/translation.json | 6 +- 2 files changed, 63 insertions(+), 13 deletions(-) diff --git a/src/components/GovernanceVotes/index.tsx b/src/components/GovernanceVotes/index.tsx index 53bafcbc44..3f04698a6b 100644 --- a/src/components/GovernanceVotes/index.tsx +++ b/src/components/GovernanceVotes/index.tsx @@ -42,6 +42,7 @@ import { BlackCircleIcon, BlackWarningIcon, CurrentStatusIcon, + DisclaimerIcon, ExpiryIcon, FilterIcon, GovernanceIdIcon, @@ -780,7 +781,7 @@ interface ActionMetadataProps { const ActionMetadataModal: React.FC = ({ onClose, open, data, anchorHash, anchorUrl }) => { const { t } = useTranslation(); const theme = useTheme(); - + const [openModal, setOpenModal] = useState(false); return ( = ({ onClose, open, dat {anchorHash} - setOpenModal(true)} + sx={{ cursor: "pointer" }} > {anchorUrl} - + + + Disclaimer:{" "} + + {t("drep.disclaimer")} + + } + > + + + - - {t("pool.metadata")}:{" "} + + + {t("pool.metadata")}: + {" "} = ({ onClose, open, dat + setOpenModal(false)} /> + + ); +}; + +const ActionMetadataModalConfirm: React.FC<{ + onClose: () => void; + open: boolean; + anchorUrl?: string; +}> = ({ anchorUrl, ...props }) => { + const { t } = useTranslation(); + const theme = useTheme(); + + return ( + + + + {t("drep.disclaimer.des1")} + + + {t("drep.disclaimer.des2")} + + + Proceed to External Link + + ); }; diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json index a6d59f66cc..4236462da4 100644 --- a/src/locales/en/translation.json +++ b/src/locales/en/translation.json @@ -1017,11 +1017,7 @@ "pool.typeConstitutional": "Constitutional Committe Updates", "pool.typeUpdate": "Update to the Constitutional or proposal policy", "pool.typeHardFork": "Hard-Fork Initiation", - "drep.updateConstitution": "Update to the Constitution", - "drep.protocolChange": "Protocol Parameter Changes", - "drep.treasuryWithdrawals": "Treasury Withdrawals", "pool.typeProtocol": "Protocol Parameter Changes", - "pool.typeTreasury": "Treasury Withdrawals", "pool.typeInfo": "Info", "pool.dateRange": "Date Range", @@ -1075,5 +1071,7 @@ "drep.governanceVotes": "Governance Votes", "drep.certificatesHistory": "Drep Certificates History", "drep.disclaimer": "Please be aware that by clicking the external links, you will be directed to an external website. We do not control or endorse the content, products, or services provided on this site. Additionally, we cannot guarantee the accuracy, relevance, or security of the information found on external pages.", + "drep.disclaimer.des1": "Please be aware that by clicking the link below, you will be directed to an external website. We do not control or endorse the content, products, or services provided on this site. Additionally, we cannot guarantee the accuracy, relevance, or security of the information found on external pages.", + "drep.disclaimer.des2": "By clicking the link, you acknowledge that you understand the risks associated with visiting external sites and agree to proceed at your own discretion.", "status.inActive": "INACTIVE" }