From c4fc2f0deff93cca117ba066f1dc8e3c121d4297 Mon Sep 17 00:00:00 2001 From: "tai.truong" Date: Mon, 1 Apr 2024 14:50:37 +0700 Subject: [PATCH] fix: MET-1963 update icon --- src/commons/resources/icons/multiyes.svg | 3 +++ src/commons/resources/index.ts | 2 ++ .../DelegationDetail/DelegationDetailInfo/styles.ts | 1 - src/components/GovernanceVotes/index.tsx | 2 +- src/components/commons/CardGovernanceVotes/index.tsx | 4 ++-- src/locales/en/translation.json | 2 ++ 6 files changed, 10 insertions(+), 4 deletions(-) create mode 100644 src/commons/resources/icons/multiyes.svg diff --git a/src/commons/resources/icons/multiyes.svg b/src/commons/resources/icons/multiyes.svg new file mode 100644 index 0000000000..266d26d0d4 --- /dev/null +++ b/src/commons/resources/icons/multiyes.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/commons/resources/index.ts b/src/commons/resources/index.ts index 861cb3358a..1ccdf54f49 100644 --- a/src/commons/resources/index.ts +++ b/src/commons/resources/index.ts @@ -227,6 +227,7 @@ import BlackWarningIcon from "./icons/warning-black.svg?react"; import BlackCircleIcon from "./icons/black-cirle-copy.svg?react"; import RepeatVotesIcon from "./icons/repeat-votes.svg?react"; import historyIcon from "./icons/history.svg?react"; +import multiYesIcon from "./icons/multiyes.svg?react"; import repeatVoteIcon from "./icons/repeatVote.svg?react"; // eslint-disable-next-line import/order import TotalOutput from "./icons/totalOutput.svg?react"; @@ -455,6 +456,7 @@ export { ExpiryIcon, AnchorTextIcon, BlackWarningIcon, + multiYesIcon, repeatVoteIcon, BlackCircleIcon, RepeatVotesIcon diff --git a/src/components/DelegationDetail/DelegationDetailInfo/styles.ts b/src/components/DelegationDetail/DelegationDetailInfo/styles.ts index e8cba2b344..f28651939f 100644 --- a/src/components/DelegationDetail/DelegationDetailInfo/styles.ts +++ b/src/components/DelegationDetail/DelegationDetailInfo/styles.ts @@ -202,7 +202,6 @@ export const InfoTitle = styled(Box)` flex-wrap: wrap; margin-top: 14px; margin-bottom: 5px; - cursor: pointer; `; export const StyledTitle = styled("span")` diff --git a/src/components/GovernanceVotes/index.tsx b/src/components/GovernanceVotes/index.tsx index f93329eed6..7cc02e57ca 100644 --- a/src/components/GovernanceVotes/index.tsx +++ b/src/components/GovernanceVotes/index.tsx @@ -927,7 +927,7 @@ const ActionMetadataModal: React.FC = ({ sx={{ transform: "translateY(3px)" }} component={CustomTooltip} title={ - + Disclaimer:{" "} diff --git a/src/components/commons/CardGovernanceVotes/index.tsx b/src/components/commons/CardGovernanceVotes/index.tsx index dd82500ea8..f49a17dd8e 100644 --- a/src/components/commons/CardGovernanceVotes/index.tsx +++ b/src/components/commons/CardGovernanceVotes/index.tsx @@ -3,7 +3,7 @@ import { Box, Stack, Tooltip, Typography, useTheme } from "@mui/material"; import { useTranslation } from "react-i18next"; import { t } from "i18next"; -import { VotesAbstainIcon, VotesNoIcon, VotesNoneIcon, VotesYesIcon, RepeatVotesIcon } from "src/commons/resources"; +import { VotesAbstainIcon, VotesNoIcon, VotesNoneIcon, VotesYesIcon, multiYesIcon } from "src/commons/resources"; import { ChipContainer } from "src/pages/NativeScriptsAndSC/Card"; import { POOLS_ACTION_TYPE, STATUS_VOTE } from "src/commons/utils/constants"; import { GovernanceVote } from "src/components/GovernanceVotes"; @@ -100,7 +100,7 @@ export const VoteStatus: React.FC<{ status: string; isRepeatVote?: boolean }> = switch (key) { case STATUS_VOTE.YES: if (isRepeatVote) { - return [RepeatVotesIcon, "success"]; + return [multiYesIcon, "success"]; } else { return [VotesYesIcon, "success"]; } diff --git a/src/locales/en/translation.json b/src/locales/en/translation.json index 9bd0208843..1d40f5f7e1 100644 --- a/src/locales/en/translation.json +++ b/src/locales/en/translation.json @@ -1034,6 +1034,8 @@ "pool.actionMetadata": "Governance Action Metadata", "pool.anchor": "Anchor", "pool.metadata": "Metadata", + "pool.metadataSearch": "Metadata Search", + "pool.searchMetadata": "Search Metadata", "smartContract.plutusDes.title": "What Are Plutus Scripts?", "smartContract.plutusDes.desc1": "Plutus is the native smart contract language for Cardano.", "smartContract.plutusDes.desc2": "is the initial version of Plutus, introduced in the Alonzo hard fork",