Skip to content

Commit f003da4

Browse files
authored
Merge pull request #106 from blocknative/fix/use-svg-logos
Utilize svg logos where possible. Closes #105
2 parents d1e307b + 5769785 commit f003da4

File tree

11 files changed

+59
-25
lines changed

11 files changed

+59
-25
lines changed

src/components/Wallets.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@
6363
onclick={() => handleWalletSelect(wallet)}
6464
iconSrc={wallet.iconSrc}
6565
iconSrcSet={wallet.iconSrcSet}
66+
svg={wallet.svg}
6667
text={wallet.name}
6768
{loadingWallet} />
6869
</li>

src/modules/select/wallet-icons/icon-fortmatic.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/modules/select/wallet-icons/icon-portis.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/modules/select/wallet-icons/icon-squarelink.svg

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/modules/select/wallet-icons/icon-trust.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/modules/select/wallet-icons/icon-walletconnect.svg

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/modules/select/wallets/fortmatic.ts

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
1-
import fortmaticIcon from '../wallet-icons/icon-fortmatic.svg'
21
import { networkName } from '../../../utilities'
32
import { validateType } from '../../../validation'
43
import { SdkWalletOptions, WalletModule, Helpers } from '../../../interfaces'
54

5+
const fortmaticIcon = `
6+
<svg
7+
height="40"
8+
viewBox="0 0 40 40"
9+
width="40"
10+
xmlns="http://www.w3.org/2000/svg"
11+
>
12+
<path d="m2744.99995 1155h9.99997 10.00008v9.98139h-10.00008-9.99997-9.99998v9.9814.64001 9.28323.05815 9.9234h-9.99997v-9.9234-.05815-9.28323-.64001-9.9814-9.98139h9.99997zm9.99961 29.88552h-9.94167v-9.92324h19.93595v10.27235c0 2.55359-1.01622 5.00299-2.82437 6.80909-1.80867 1.8061-4.26182 2.82181-6.82018 2.82335h-.34973z"
13+
fill="#617bff"
14+
fill-rule="evenodd"
15+
transform="translate(-2725 -1155)"/>
16+
</svg>
17+
`
18+
619
function fortmatic(options: SdkWalletOptions): WalletModule {
720
validateType({ name: 'Fortmatic options', value: options, type: 'object' })
821

@@ -22,7 +35,7 @@ function fortmatic(options: SdkWalletOptions): WalletModule {
2235

2336
return {
2437
name: 'Fortmatic',
25-
iconSrc: fortmaticIcon,
38+
svg: fortmaticIcon,
2639
wallet: async (helpers: Helpers) => {
2740
if (!instance) {
2841
const { default: Fortmatic } = await import('fortmatic')

0 commit comments

Comments
 (0)