Skip to content

Commit 30d43a7

Browse files
refactor(Simulator/icons): update implementations
1 parent b61005d commit 30d43a7

File tree

6 files changed

+7
-30
lines changed

6 files changed

+7
-30
lines changed

src/components/Simulator/WalletHome/SendReceiveButton.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,7 @@ export const SendReceiveButton = ({
4141
)}
4242
>
4343
{!isDisabled && isAnimated && <PulseAnimation type="circle" />}
44-
{/* TODO: Remove important flags from class utils when simulator icons are migrated to tailwind */}
45-
<Icon className="!size-4 !text-background md:!size-6" />
44+
<Icon className="size-4 text-background md:size-6" />
4645
</div>
4746
<div className="relative">
4847
<p

src/components/Simulator/icons/EthTokenIcon.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ export const EthTokenIconGrayscale = createIconBase({
2929
className: "text-3xl/none fill-none",
3030
children: (
3131
<>
32-
<circle cx="15" cy="15" r="15" fill="var(--eth-colors-body-light)" />
32+
<circle cx="15" cy="15" r="15" fill="#fff" />
3333
<path
3434
d="M20.87 15.1868L14.9371 5L9 15.1868L14.9371 18.8115L20.87 15.1868Z"
35-
fill="var(--eth-colors-body-medium)"
35+
fill="var(--eth-colors-primary-action)"
3636
/>
3737
<path
3838
d="M14.9996 25L20.9366 16.3523L14.9996 19.977L9.0625 16.3523L14.9996 25Z"
39-
fill="var(--eth-colors-body-medium)"
39+
fill="var(--eth-colors-primary-action)"
4040
/>
4141
</>
4242
),

src/components/Simulator/icons/EthTokenIconGrayscale.tsx

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/components/Simulator/screens/CreateAccount/HomeScreen.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ export const HomeScreen = ({ nav, ...props }: HomeScreenProps) => {
3434
exit={{ opacity: 0 }}
3535
onClick={nav.progressStepper}
3636
>
37-
{/* TODO: remove important flag from classes when icons are migrated */}
38-
<EthGlyphIcon className="!size-[1em] !text-2xl !text-background sm:!text-3xl" />
37+
<EthGlyphIcon className="size-[1em] text-2xl text-background sm:text-3xl" />
3938
</motion.button>
4039
) : (
4140
<motion.div

src/components/Simulator/screens/CreateAccount/WelcomeScreen.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ export const WelcomeScreen = () => (
1313
animate={{ opacity: 1 }}
1414
transition={{ duration: 0.8 }}
1515
>
16-
{/* TODO: remove important flag from classes when icons are migrated */}
17-
<EthGlyphIcon className="!my-4 !h-[110px] !w-auto !text-body md:!h-[190px]" />
16+
<EthGlyphIcon className="my-4 h-[110px] w-auto text-body md:h-[190px]" />
1817
<p className="px-4 text-center text-2xl leading-8 md:px-8">
1918
Welcome to
2019
<span className="block font-bold">wallet simulator</span>

src/components/Simulator/screens/SendReceive/SendFromContacts.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const SendFromContacts = ({
3636
>
3737
<PiMagnifyingGlass />
3838
<span className="me-auto">Address or contacts</span>
39-
<QrCodeIcon className="text-lg text-disabled" />
39+
<QrCodeIcon className="text-lg" />
4040
</Button>
4141
</NotificationPopover>
4242
</div>

0 commit comments

Comments
 (0)