From 4f698893255efab541197e1cb7d66e1a19940af6 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Tue, 3 Mar 2026 13:09:47 +0000 Subject: [PATCH] fix: add Tron chain icon to namespace icons in wallet list Co-Authored-By: Magomed Khamidov --- packages/ui/src/assets/svg/tron.ts | 7 +++++++ packages/ui/src/components/wui-icon/index.ts | 3 +++ packages/ui/src/composites/wui-list-wallet/index.ts | 2 +- packages/ui/src/utils/TypeUtil.ts | 1 + 4 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 packages/ui/src/assets/svg/tron.ts diff --git a/packages/ui/src/assets/svg/tron.ts b/packages/ui/src/assets/svg/tron.ts new file mode 100644 index 0000000000..6aa14f1af4 --- /dev/null +++ b/packages/ui/src/assets/svg/tron.ts @@ -0,0 +1,7 @@ +import { svg } from 'lit' + +export const tronSvg = svg` + + + +` diff --git a/packages/ui/src/components/wui-icon/index.ts b/packages/ui/src/components/wui-icon/index.ts index 119aceba95..95a6d5b7c8 100644 --- a/packages/ui/src/components/wui-icon/index.ts +++ b/packages/ui/src/components/wui-icon/index.ts @@ -24,6 +24,7 @@ import { reownSvg } from '../../assets/svg/reown-logo.js' import { solanaSvg } from '../../assets/svg/solana.js' import { telegramSvg } from '../../assets/svg/telegram.js' import { tonSvg } from '../../assets/svg/ton.js' +import { tronSvg } from '../../assets/svg/tron.js' import { twitchSvg } from '../../assets/svg/twitch.js' import { twitterIconSvg } from '../../assets/svg/twitterIcon.js' import { @@ -123,6 +124,7 @@ const phosphorIconsMap: Record = { reown: '', solana: '', ton: '', + tron: '', telegram: '', twitch: '', twitterIcon: '', @@ -212,6 +214,7 @@ const svgOptions: Partial>> = { reown: reownSvg, solana: solanaSvg, ton: tonSvg, + tron: tronSvg, telegram: telegramSvg, twitch: twitchSvg, twitter: xSvg, diff --git a/packages/ui/src/composites/wui-list-wallet/index.ts b/packages/ui/src/composites/wui-list-wallet/index.ts index 250aed67b5..a0ad9834dd 100644 --- a/packages/ui/src/composites/wui-list-wallet/index.ts +++ b/packages/ui/src/composites/wui-list-wallet/index.ts @@ -24,7 +24,7 @@ const NAMESPACE_ICONS = { sui: undefined, stacks: undefined, ton: 'ton', - tron: undefined + tron: 'tron' } as const satisfies Record @customElement('wui-list-wallet') diff --git a/packages/ui/src/utils/TypeUtil.ts b/packages/ui/src/utils/TypeUtil.ts index be90fcbf8f..251b434e66 100644 --- a/packages/ui/src/utils/TypeUtil.ts +++ b/packages/ui/src/utils/TypeUtil.ts @@ -184,6 +184,7 @@ export type IconType = | 'telegram' | 'threeDots' | 'ton' + | 'tron' | 'twitch' | 'twitter' | 'twitterIcon'