From ec2b1116ab52702b9af89797c5a76bd520607019 Mon Sep 17 00:00:00 2001 From: Nicola Benaglia Date: Sat, 12 Apr 2025 18:11:56 +0200 Subject: [PATCH] Refactor walletIcon with theme --- src/App.tsx | 2 +- src/assets/Icons/WalletIcon.tsx | 18 ++++++++++++++---- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 92aa923..4cb416a 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1817,7 +1817,7 @@ function App() { setIsOpenDrawerProfile(true); }} > - + diff --git a/src/assets/Icons/WalletIcon.tsx b/src/assets/Icons/WalletIcon.tsx index 92223bf..9bb606b 100644 --- a/src/assets/Icons/WalletIcon.tsx +++ b/src/assets/Icons/WalletIcon.tsx @@ -1,8 +1,18 @@ -import React from "react"; +import { useTheme } from '@mui/material'; +import { SVGProps } from '../svgs/interfaces'; + +export const WalletIcon: React.FC = ({ + color, + width, + ...children +}) => { + const theme = useTheme(); + + const setColor = color ? color : theme.palette.text.primary; -export const WalletIcon = ({ color, height, width }) => { return ( { >