Skip to content

Commit af3bacf

Browse files
committed
chore: revert icon update (they should be lazy loaded from sovryn-onboard)
1 parent bd0fe05 commit af3bacf

3 files changed

Lines changed: 8 additions & 16 deletions

File tree

packages/ui/src/1_atoms/Icon/Icon.types.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,6 @@ export enum IconNames {
2828
X_MARK = 'x-mark',
2929
COPY = 'copy',
3030
EXIT = 'exit',
31-
32-
LEDGER = 'ledger',
33-
TREZOR = 'trezor',
3431
}
3532

3633
export type IconName = typeof IconNames[keyof typeof IconNames];

packages/ui/src/1_atoms/Icon/iconSvgPaths.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,4 @@ export const IconSvgPaths: Record<IconName, string[]> = {
7979
exit: [
8080
'M18 4.88889L16.308 6.61222L19.404 9.77778H7.2V12.2222H19.404L16.308 15.3756L18 17.1111L24 11L18 4.88889ZM2.4 2.44444H12V0H2.4C1.08 0 0 1.1 0 2.44444V19.5556C0 20.9 1.08 22 2.4 22H12V19.5556H2.4V2.44444Z',
8181
],
82-
ledger: [
83-
'M20.1105 0H9.14014V14.7998H23.952V3.8294C23.952 1.72805 22.2227 0 20.1226 0C20.119 0 20.1141 0 20.1105 0V0Z',
84-
'M5.72002 0H3.8294C1.72925 0 0 1.72925 0 3.8294V5.72002H5.72002V0Z',
85-
'M0 9.13989H5.72002V14.8599H0V9.13989Z',
86-
'M18.2798 23.9519H20.1704C22.2718 23.9519 23.9998 22.2226 23.9998 20.1225C23.9998 20.1189 23.9998 20.114 23.9998 20.1104V18.28H18.2798V23.9519Z',
87-
'M9.14014 18.28H14.8602V24H9.14014V18.28Z',
88-
'M0 18.28V20.1706C0 22.2708 1.72925 24 3.8294 24H5.72002V18.28H0Z',
89-
],
90-
trezor: [
91-
'M12.0129 1C8.82381 1 6.24296 3.44241 6.24296 6.46041V8.50692C5.12309 8.69878 4 8.9546 4 9.28654V19.9668C4 19.9668 4 20.2622 4.35076 20.4023C5.62188 20.8895 10.6227 22.5645 11.7715 22.9482C11.9195 23 11.9614 23 12 23C12.0547 23 12.0805 23 12.2285 22.9482C13.3773 22.5645 18.391 20.8895 19.6621 20.4023C19.9871 20.2744 20 19.979 20 19.979V9.28654C20 8.9546 18.893 8.6866 17.7699 8.50692V6.46041C17.786 3.44241 15.1891 1 12.0129 1ZM12.0129 3.60991C13.8922 3.60991 15.0282 4.68494 15.0282 6.46345V8.24197C12.9204 8.10188 11.1215 8.10188 9.0008 8.24197V6.46345C9.0008 4.68189 10.1368 3.60991 12.0129 3.60991V3.60991ZM12 10.861C14.6227 10.861 16.8238 11.0529 16.8238 11.397V18.0604C16.8238 18.1639 16.8109 18.1761 16.7144 18.2126C16.6211 18.2522 12.2414 19.7475 12.2414 19.7475C12.2414 19.7475 12.0644 19.7993 12.0129 19.7993C11.9582 19.7993 11.7844 19.7353 11.7844 19.7353C11.7844 19.7353 7.40467 18.24 7.31134 18.2004C7.21802 18.1609 7.20193 18.1487 7.20193 18.0482V11.3848C7.17619 11.0407 9.37731 10.861 12 10.861V10.861Z',
92-
],
9382
};

packages/ui/src/2_molecules/WalletContainer/WalletContainer.stories.tsx

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,21 @@ const Advanced: Story<ComponentProps<typeof WalletContainer>> = args => (
3434
<WalletContainer
3535
{...args}
3636
name="Ledger"
37-
icon={<Icon icon={IconNames.LEDGER} size={24} className="text-warning" />}
37+
icon={<Icon icon={IconNames.INFO} size={24} className="text-warning" />}
3838
onClick={() => alert('Ledger clicked')}
3939
/>
4040
<br />
4141
<WalletContainer
4242
{...args}
4343
name="Trezor"
4444
tooltip="tooltip"
45-
icon={<Icon icon={IconNames.TREZOR} size={25} className="text-primary" />}
45+
icon={
46+
<Icon
47+
icon={IconNames.NOTIFICATIONS}
48+
size={25}
49+
className="text-primary"
50+
/>
51+
}
4652
onClick={() => alert('Trezor clicked')}
4753
/>
4854
</div>

0 commit comments

Comments
 (0)