Skip to content

Commit 9b655c4

Browse files
author
salimcansatici
committed
Fixed BRC20 Tokens Img
1 parent eebb0e1 commit 9b655c4

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

src/components/header.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ const links = [
2424
badge: 'new',
2525
},
2626
{
27-
url: '/blockchain',
28-
label: 'Blockchain',
27+
url: '/generate',
28+
label: 'Generate',
2929
},
3030
{
3131
url: '/validators',

src/views/address/overview.tsx

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,20 @@ export default function AccountOverview({ tokens }: OverviewProps) {
5757
<tr key={token.symbol}>
5858
<td>
5959
<div className='flex items-center space-x-4'>
60-
<img
61-
src={`/images/symbols/${token.symbol.toUpperCase()}.svg`}
62-
alt=''
63-
className='h-9 w-9 shrink-0'
64-
/>
60+
<div className="">
61+
{['PBTC', 'PUSDT', 'BTCUSD', 'LIBRE', 'BTCLIB'].includes(token.symbol.toUpperCase()) ? (
62+
<img
63+
src={`/images/symbols/${token.symbol.toUpperCase()}.svg`}
64+
alt={token.symbol.toUpperCase()}
65+
className="h-8 w-8 shrink-0"
66+
/>
67+
) : (
68+
<div className="w-11 h-11 rounded-full bg-blue-500 flex flex-col justify-center items-center">
69+
<a className="uppercase text-xs">{token.symbol.toUpperCase()}</a>
70+
</div>
71+
)}
72+
</div>
73+
6574
<Link
6675
href={'../tokens'}
6776
className='inline-block max-w-full truncate align-middle hover:underline'

0 commit comments

Comments
 (0)