From 4f9b8fe6cc01a6069d200ca85f255d235b4d9489 Mon Sep 17 00:00:00 2001 From: Nicola Benaglia Date: Sat, 12 Apr 2025 16:39:53 +0200 Subject: [PATCH] Transform svg into tsx --- src/Wallets.tsx | 2 +- src/assets/svgs/Download.tsx | 32 ++++++++++++++++++++++++++++++++ src/assets/svgs/Logout.tsx | 28 ++++++++++++++++++++++++++++ 3 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 src/assets/svgs/Download.tsx create mode 100644 src/assets/svgs/Logout.tsx diff --git a/src/Wallets.tsx b/src/Wallets.tsx index 5752639..8faf005 100644 --- a/src/Wallets.tsx +++ b/src/Wallets.tsx @@ -17,7 +17,7 @@ import { IconButton, Input, } from '@mui/material'; -import { CustomButton } from './App-styles'; +import { CustomButton } from './styles/App-styles'; import { useDropzone } from 'react-dropzone'; import EditIcon from '@mui/icons-material/Edit'; import { Label } from './components/Group/AddGroup'; diff --git a/src/assets/svgs/Download.tsx b/src/assets/svgs/Download.tsx new file mode 100644 index 0000000..577f1b4 --- /dev/null +++ b/src/assets/svgs/Download.tsx @@ -0,0 +1,32 @@ +import { useTheme } from '@mui/material'; +import { SVGProps } from './interfaces'; + +export const Download: React.FC = ({ + color, + opacity, + ...children +}) => { + const theme = useTheme(); + + const setColor = color ? color : theme.palette.text.primary; + const setOpacity = opacity ? opacity : 0.5; + + return ( + + + + ); +}; diff --git a/src/assets/svgs/Logout.tsx b/src/assets/svgs/Logout.tsx new file mode 100644 index 0000000..3cdf9bb --- /dev/null +++ b/src/assets/svgs/Logout.tsx @@ -0,0 +1,28 @@ +import { useTheme } from '@mui/material'; +import { SVGProps } from './interfaces'; + +export const Logout: React.FC = ({ color, opacity, ...children }) => { + const theme = useTheme(); + + const setColor = color ? color : theme.palette.text.primary; + const setOpacity = opacity ? opacity : 0.3; + + return ( + + + + ); +};