Skip to content

Commit

Permalink
fix: MET-1963 update icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Sotatek-TaiTruong committed Apr 1, 2024
1 parent a314b7c commit c4fc2f0
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions src/commons/resources/icons/multiyes.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions src/commons/resources/index.ts
Expand Up @@ -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";
Expand Down Expand Up @@ -455,6 +456,7 @@ export {
ExpiryIcon,
AnchorTextIcon,
BlackWarningIcon,
multiYesIcon,
repeatVoteIcon,
BlackCircleIcon,
RepeatVotesIcon
Expand Down
Expand Up @@ -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")`
Expand Down
2 changes: 1 addition & 1 deletion src/components/GovernanceVotes/index.tsx
Expand Up @@ -927,7 +927,7 @@ const ActionMetadataModal: React.FC<ActionMetadataProps> = ({
sx={{ transform: "translateY(3px)" }}
component={CustomTooltip}
title={
<Box textAlign={"left"}>
<Box textAlign={"left"} width={"min(80vw, 300px)"}>
<Box fontWeight={"bold"} component={"span"}>
Disclaimer:{" "}
</Box>
Expand Down
4 changes: 2 additions & 2 deletions src/components/commons/CardGovernanceVotes/index.tsx
Expand Up @@ -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";
Expand Down Expand Up @@ -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"];
}
Expand Down
2 changes: 2 additions & 0 deletions src/locales/en/translation.json
Expand Up @@ -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",
Expand Down

0 comments on commit c4fc2f0

Please sign in to comment.