Skip to content

Commit

Permalink
fix: icons import
Browse files Browse the repository at this point in the history
  • Loading branch information
chybisov committed Aug 11, 2022
1 parent 29e8691 commit 43ff424
Show file tree
Hide file tree
Showing 9 changed files with 62 additions and 24 deletions.
3 changes: 1 addition & 2 deletions packages/widget/src/components/LiFiLogo.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion packages/widget/src/components/StepActions/StepActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
10 changes: 0 additions & 10 deletions packages/widget/src/icons/LiFiFullLogo.svg

This file was deleted.

20 changes: 20 additions & 0 deletions packages/widget/src/icons/LiFiFullLogo.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { SVGProps } from 'react';

export const LiFiFullLogo = (props: SVGProps<SVGSVGElement>) => (
<svg
width="84"
height="32"
viewBox="0 0 84 32"
fill="inherit"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path d="M50.6689 20.5714H42.6849V8H39V24H50.6689V20.5714Z" />
<path d="M53.0717 24H56.7566V8H53.0717V24Z" />
<path d="M59.5088 24H63.0117V20.48H59.5088V24Z" />
<path d="M69.4396 17.76H77.1506V14.6057H69.4396V11.2457H77.8103V8H65.7547V24H69.4396V17.76Z" />
<path d="M80.3151 24H84V8H80.3151V24Z" />
<path d="M14.6163 21.6947L5.1336 23.89C4.78772 23.9766 4.52832 24.3232 4.52832 24.6698V31.1978C4.52832 31.7467 4.96066 32.0933 5.50829 31.9777L18.7379 28.9159C19.2856 28.8004 19.5162 28.2805 19.2856 27.7894L16.8933 22.8501C16.5186 22.0702 16.8933 21.2614 17.7291 21.0881L26.376 19.0084C26.9813 18.864 27.5001 18.2285 27.5001 17.593V11.5561C27.5001 11.0073 27.0677 10.6318 26.5201 10.7762L14.0398 13.7514C13.2616 13.9247 12.9157 14.6757 13.2616 15.3978L15.4521 19.9327C15.8268 20.7126 15.4521 21.4925 14.6163 21.6947Z" />
<path d="M8.36225 5.3748L10.841 10.4585C11.1581 11.1229 10.841 11.8161 10.1204 11.9606L5.53762 13.0293C4.96116 13.1737 4.5 13.7514 4.5 14.3291V19.7884C4.5 20.7127 5.24939 21.2904 6.1429 21.0882L10.4087 20.1061C10.9851 19.9906 11.4463 19.384 11.4463 18.8063L11.4751 13.2026C11.4751 12.4227 12.1092 11.6428 12.8586 11.4695L26.8376 8.11886C27.1835 8.03221 27.4429 7.68559 27.4429 7.33897V0.810981C27.4429 0.262168 27.0106 -0.113336 26.4629 0.0310883L8.90988 4.24829C8.36225 4.36383 8.13167 4.88375 8.36225 5.3748Z" />
</svg>
);
5 changes: 0 additions & 5 deletions packages/widget/src/icons/LiFiLogo.svg

This file was deleted.

15 changes: 15 additions & 0 deletions packages/widget/src/icons/LiFiLogo.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { SVGProps } from 'react';

export const LiFiLogo = (props: SVGProps<SVGSVGElement>) => (
<svg
width="32"
height="32"
viewBox="0 0 32 32"
fill="inherit"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<path d="M14.6163 21.6947L5.1336 23.89C4.78772 23.9766 4.52832 24.3232 4.52832 24.6698V31.1978C4.52832 31.7467 4.96066 32.0933 5.50829 31.9777L18.7379 28.9159C19.2856 28.8004 19.5162 28.2805 19.2856 27.7894L16.8933 22.8501C16.5186 22.0702 16.8933 21.2614 17.7291 21.0881L26.376 19.0084C26.9813 18.864 27.5001 18.2285 27.5001 17.593V11.5561C27.5001 11.0073 27.0677 10.6318 26.5201 10.7762L14.0398 13.7514C13.2616 13.9247 12.9157 14.6757 13.2616 15.3978L15.4521 19.9327C15.8268 20.7126 15.4521 21.4925 14.6163 21.6947Z" />
<path d="M8.36225 5.3748L10.841 10.4585C11.1581 11.1229 10.841 11.8161 10.1204 11.9606L5.53762 13.0293C4.96116 13.1737 4.5 13.7514 4.5 14.3291V19.7884C4.5 20.7127 5.24939 21.2904 6.1429 21.0882L10.4087 20.1061C10.9851 19.9906 11.4463 19.384 11.4463 18.8063L11.4751 13.2026C11.4751 12.4227 12.1092 11.6428 12.8586 11.4695L26.8376 8.11886C27.1835 8.03221 27.4429 7.68559 27.4429 7.33897V0.810981C27.4429 0.262168 27.0106 -0.113336 26.4629 0.0310883L8.90988 4.24829C8.36225 4.36383 8.13167 4.88375 8.36225 5.3748Z" />
</svg>
);
6 changes: 0 additions & 6 deletions packages/widget/src/icons/LiFiToolLogo.svg

This file was deleted.

22 changes: 22 additions & 0 deletions packages/widget/src/icons/LiFiToolLogo.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import { SVGProps } from 'react';

export const LiFiToolLogo = (props: SVGProps<SVGSVGElement>) => (
<svg
width="32"
height="32"
viewBox="0 0 32 32"
fill="none"
xmlns="http://www.w3.org/2000/svg"
{...props}
>
<circle cx="16" cy="16" r="16" fill="#F5B5FF" />
<path
d="M15.5031 19.2031L10.1691 20.4379C9.97453 20.4867 9.82861 20.6816 9.82861 20.8766V24.5486C9.82861 24.8573 10.0718 25.0523 10.3798 24.9873L17.8215 23.265C18.1296 23.2 18.2593 22.9076 18.1296 22.6314L16.7839 19.853C16.5731 19.4143 16.7839 18.9594 17.2541 18.8619L22.1179 17.692C22.4584 17.6108 22.7502 17.2534 22.7502 16.8959V13.5001C22.7502 13.1914 22.507 12.9802 22.199 13.0614L15.1788 14.735C14.7411 14.8324 14.5465 15.2549 14.7411 15.6611L15.9733 18.212C16.184 18.6507 15.9733 19.0893 15.5031 19.2031Z"
fill="black"
/>
<path
d="M11.985 10.0233L13.3793 12.8829C13.5577 13.2566 13.3793 13.6466 12.974 13.7278L10.3962 14.329C10.0719 14.4102 9.8125 14.7352 9.8125 15.0601V18.1309C9.8125 18.6509 10.234 18.9758 10.7366 18.8621L13.1361 18.3097C13.4604 18.2447 13.7198 17.9035 13.7198 17.5785L13.736 14.4265C13.736 13.9878 14.0927 13.5491 14.5142 13.4516L22.3774 11.5669C22.572 11.5181 22.7179 11.3231 22.7179 11.1282V7.45618C22.7179 7.14747 22.4747 6.93625 22.1666 7.01749L12.2931 9.38966C11.985 9.45465 11.8553 9.74711 11.985 10.0233Z"
fill="black"
/>
</svg>
);
3 changes: 3 additions & 0 deletions packages/widget/src/icons/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export * from './LiFiFullLogo';
export * from './LiFiLogo';
export * from './LiFiToolLogo';

0 comments on commit 43ff424

Please sign in to comment.