Skip to content

Commit 4f69889

Browse files
fix: add Tron chain icon to namespace icons in wallet list
Co-Authored-By: Magomed Khamidov <mago.khamidov@gmail.com>
1 parent 329ea79 commit 4f69889

4 files changed

Lines changed: 12 additions & 1 deletion

File tree

packages/ui/src/assets/svg/tron.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { svg } from 'lit'
2+
3+
export const tronSvg = svg`
4+
<svg xmlns="http://www.w3.org/2000/svg" width="10" height="10" viewBox="0 0 64 64">
5+
<path fill="var(--apkt-tokens-theme-textPrimary)" d="M61.55 19.28c-3-2.77-7.15-7-10.53-10l-.2-.14a3.82 3.82 0 0 0-1.11-.62l0 0C41.56 7 3.63-.09 2.89 0a1.4 1.4 0 0 0-.58.22L2.12.37a2.23 2.23 0 0 0-.52.84l-.05.13v.71l0 .11C5.82 14.05 22.68 53 26 62.14c.2.62.58 1.8 1.29 1.86h.16c.38 0 2-2.14 2-2.14S58.41 26.74 61.34 23a9.46 9.46 0 0 0 1-1.48A2.41 2.41 0 0 0 61.55 19.28ZM36.88 23.37 49.24 13.12l7.25 6.68Zm-4.8-.67L10.8 5.26l34.43 6.35ZM34 27.27l21.78-3.51-24.9 30ZM7.91 7 30.3 26 27.06 53.78Z"/>
6+
</svg>
7+
`

packages/ui/src/components/wui-icon/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import { reownSvg } from '../../assets/svg/reown-logo.js'
2424
import { solanaSvg } from '../../assets/svg/solana.js'
2525
import { telegramSvg } from '../../assets/svg/telegram.js'
2626
import { tonSvg } from '../../assets/svg/ton.js'
27+
import { tronSvg } from '../../assets/svg/tron.js'
2728
import { twitchSvg } from '../../assets/svg/twitch.js'
2829
import { twitterIconSvg } from '../../assets/svg/twitterIcon.js'
2930
import {
@@ -123,6 +124,7 @@ const phosphorIconsMap: Record<string, string> = {
123124
reown: '',
124125
solana: '',
125126
ton: '',
127+
tron: '',
126128
telegram: '',
127129
twitch: '',
128130
twitterIcon: '',
@@ -212,6 +214,7 @@ const svgOptions: Partial<Record<IconType, TemplateResult<2>>> = {
212214
reown: reownSvg,
213215
solana: solanaSvg,
214216
ton: tonSvg,
217+
tron: tronSvg,
215218
telegram: telegramSvg,
216219
twitch: twitchSvg,
217220
twitter: xSvg,

packages/ui/src/composites/wui-list-wallet/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const NAMESPACE_ICONS = {
2424
sui: undefined,
2525
stacks: undefined,
2626
ton: 'ton',
27-
tron: undefined
27+
tron: 'tron'
2828
} as const satisfies Record<ChainNamespace, IconType | undefined>
2929

3030
@customElement('wui-list-wallet')

packages/ui/src/utils/TypeUtil.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ export type IconType =
184184
| 'telegram'
185185
| 'threeDots'
186186
| 'ton'
187+
| 'tron'
187188
| 'twitch'
188189
| 'twitter'
189190
| 'twitterIcon'

0 commit comments

Comments
 (0)