From 43ff4245cfab208e3ddfcc9b0597a91d0fa795f9 Mon Sep 17 00:00:00 2001 From: Eugene Chybisov Date: Thu, 11 Aug 2022 17:45:41 +0100 Subject: [PATCH] fix: icons import --- packages/widget/src/components/LiFiLogo.tsx | 3 +-- .../components/StepActions/StepActions.tsx | 2 +- packages/widget/src/icons/LiFiFullLogo.svg | 10 --------- packages/widget/src/icons/LiFiFullLogo.tsx | 20 +++++++++++++++++ packages/widget/src/icons/LiFiLogo.svg | 5 ----- packages/widget/src/icons/LiFiLogo.tsx | 15 +++++++++++++ packages/widget/src/icons/LiFiToolLogo.svg | 6 ----- packages/widget/src/icons/LiFiToolLogo.tsx | 22 +++++++++++++++++++ packages/widget/src/icons/index.ts | 3 +++ 9 files changed, 62 insertions(+), 24 deletions(-) delete mode 100644 packages/widget/src/icons/LiFiFullLogo.svg create mode 100644 packages/widget/src/icons/LiFiFullLogo.tsx delete mode 100644 packages/widget/src/icons/LiFiLogo.svg create mode 100644 packages/widget/src/icons/LiFiLogo.tsx delete mode 100644 packages/widget/src/icons/LiFiToolLogo.svg create mode 100644 packages/widget/src/icons/LiFiToolLogo.tsx create mode 100644 packages/widget/src/icons/index.ts diff --git a/packages/widget/src/components/LiFiLogo.tsx b/packages/widget/src/components/LiFiLogo.tsx index 25214ff30..f0cadda82 100644 --- a/packages/widget/src/components/LiFiLogo.tsx +++ b/packages/widget/src/components/LiFiLogo.tsx @@ -1,6 +1,5 @@ import { CSSProperties } from 'react'; -import { ReactComponent as LiFiFullLogo } from '../icons/LiFiFullLogo.svg'; -import { ReactComponent as LiFiIconLogo } from '../icons/LiFiLogo.svg'; +import { LiFiFullLogo, LiFiLogo as LiFiIconLogo } from '../icons'; export const LiFiLogo: React.FC<{ variant?: 'icon' | 'full'; diff --git a/packages/widget/src/components/StepActions/StepActions.tsx b/packages/widget/src/components/StepActions/StepActions.tsx index 1aca953be..0618edd61 100644 --- a/packages/widget/src/components/StepActions/StepActions.tsx +++ b/packages/widget/src/components/StepActions/StepActions.tsx @@ -9,7 +9,7 @@ import { } from '@mui/material'; import { useTranslation } from 'react-i18next'; import { useChains } from '../../hooks'; -import { ReactComponent as LiFiToolLogo } from '../../icons/LiFiToolLogo.svg'; +import { LiFiToolLogo } from '../../icons'; import { formatTokenAmount } from '../../utils'; import { SmallAvatar } from '../SmallAvatar'; import { diff --git a/packages/widget/src/icons/LiFiFullLogo.svg b/packages/widget/src/icons/LiFiFullLogo.svg deleted file mode 100644 index 37d9cac4f..000000000 --- a/packages/widget/src/icons/LiFiFullLogo.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - diff --git a/packages/widget/src/icons/LiFiFullLogo.tsx b/packages/widget/src/icons/LiFiFullLogo.tsx new file mode 100644 index 000000000..1b51b03a5 --- /dev/null +++ b/packages/widget/src/icons/LiFiFullLogo.tsx @@ -0,0 +1,20 @@ +import { SVGProps } from 'react'; + +export const LiFiFullLogo = (props: SVGProps) => ( + + + + + + + + + +); diff --git a/packages/widget/src/icons/LiFiLogo.svg b/packages/widget/src/icons/LiFiLogo.svg deleted file mode 100644 index b51d1ff4a..000000000 --- a/packages/widget/src/icons/LiFiLogo.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - diff --git a/packages/widget/src/icons/LiFiLogo.tsx b/packages/widget/src/icons/LiFiLogo.tsx new file mode 100644 index 000000000..067e51288 --- /dev/null +++ b/packages/widget/src/icons/LiFiLogo.tsx @@ -0,0 +1,15 @@ +import { SVGProps } from 'react'; + +export const LiFiLogo = (props: SVGProps) => ( + + + + +); diff --git a/packages/widget/src/icons/LiFiToolLogo.svg b/packages/widget/src/icons/LiFiToolLogo.svg deleted file mode 100644 index 7087bf599..000000000 --- a/packages/widget/src/icons/LiFiToolLogo.svg +++ /dev/null @@ -1,6 +0,0 @@ - - - - - diff --git a/packages/widget/src/icons/LiFiToolLogo.tsx b/packages/widget/src/icons/LiFiToolLogo.tsx new file mode 100644 index 000000000..152b9bde0 --- /dev/null +++ b/packages/widget/src/icons/LiFiToolLogo.tsx @@ -0,0 +1,22 @@ +import { SVGProps } from 'react'; + +export const LiFiToolLogo = (props: SVGProps) => ( + + + + + +); diff --git a/packages/widget/src/icons/index.ts b/packages/widget/src/icons/index.ts new file mode 100644 index 000000000..015f3f9cb --- /dev/null +++ b/packages/widget/src/icons/index.ts @@ -0,0 +1,3 @@ +export * from './LiFiFullLogo'; +export * from './LiFiLogo'; +export * from './LiFiToolLogo';