Skip to content

Commit 42f97b8

Browse files
authored
Merge pull request #3984 from Emurgo/fix/YOEXT-1963
fix: yoroi drep banner close button styling
2 parents 8e33ce7 + feacea3 commit 42f97b8

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

packages/yoroi-extension/app/UI/components/DrepPromotionBanner/DrepPromotionBanner.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Button, Stack, Typography, styled } from '@mui/material';
1+
import { Button, Stack, Typography, styled, useTheme } from '@mui/material';
22
import BigNumber from 'bignumber.js';
33
import { observer } from 'mobx-react';
44
import React, { useCallback, useEffect, useMemo, useState } from 'react';
@@ -55,6 +55,7 @@ const useDrepBannerVisibility = (balance: BigNumber, selectedWalletId: number) =
5555

5656
export const DrepPromotionBanner = observer(({ stores, intl }) => {
5757
const selectedWallet = stores.wallets.selectedOrFail;
58+
const theme: any = useTheme();
5859

5960
if (selectedWallet.isTestnet) {
6061
return null;
@@ -100,6 +101,7 @@ export const DrepPromotionBanner = observer(({ stores, intl }) => {
100101
<IconWrapper
101102
onClick={dismissBanner}
102103
icon={Icons.CloseCircleIcon}
104+
iconProps={{fill: theme.palette.ds.el_gray_max}}
103105
color="ds.el_gray_max"
104106
borderColor="ds.el_gray_max"
105107
asButton

packages/yoroi-extension/app/UI/components/icons/CloseCircleIcon.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
import React from 'react';
22

3-
export const CloseCircleIcon = () => {
3+
export const CloseCircleIcon = (props: React.SVGProps<SVGSVGElement>) => {
44
return (
55
<svg width="24" height="24" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
66
<path
77
d="M13.7071 6.29289C14.0976 6.68342 14.0976 7.31658 13.7071 7.70711L11.4142 10L13.7071 12.2929C14.0976 12.6834 14.0976 13.3166 13.7071 13.7071C13.3166 14.0976 12.6834 14.0976 12.2929 13.7071L10 11.4142L7.70711 13.7071C7.31658 14.0976 6.68342 14.0976 6.29289 13.7071C5.90237 13.3166 5.90237 12.6834 6.29289 12.2929L8.58579 10L6.29289 7.70711C5.90237 7.31658 5.90237 6.68342 6.29289 6.29289C6.68342 5.90237 7.31658 5.90237 7.70711 6.29289L10 8.58579L12.2929 6.29289C12.6834 5.90237 13.3166 5.90237 13.7071 6.29289Z"
8-
fill="black"
8+
fill={props.fill || "black"}
99
/>
1010
<path
1111
fillRule="evenodd"
1212
clipRule="evenodd"
1313
d="M0 10C0 4.47715 4.47715 0 10 0C15.5228 0 20 4.47715 20 10C20 15.5228 15.5228 20 10 20C4.47715 20 0 15.5228 0 10ZM10 2C5.58172 2 2 5.58172 2 10C2 14.4183 5.58172 18 10 18C14.4183 18 18 14.4183 18 10C18 5.58172 14.4183 2 10 2Z"
14-
fill="black"
14+
fill={props.fill || "black"}
1515
/>
1616
</svg>
1717
);

0 commit comments

Comments
 (0)