Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APT-946: Bridge token logo display fixed #677

Merged
merged 1 commit into from
Apr 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions products/bridge/bridge-web/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -498,7 +498,7 @@ function App() {
<div className="indicator">
<div className="join-item">
<div className="dropdown ">
<button tabIndex={0} role="button" className="btn w-32">
<button tabIndex={0} role="button" className="btn w-40">
{token.logo && (
<img
src={token.logo}
Expand All @@ -524,14 +524,16 @@ function App() {
key={token.address}
onClick={() => selectTokenOnDropdown(token)}
>
{token.logo && (
<img
src={token.logo}
className="h-8"
alt="Zilliqa Logo"
/>
)}
<p>{token.name}</p>
<div className="flex items-center gap-2">
{token.logo && (
<img
src={token.logo}
className="h-8"
alt="Zilliqa Logo"
/>
)}
<p>{token.name}</p>
</div>
</li>
))}
</ul>
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
7 changes: 6 additions & 1 deletion products/bridge/bridge-web/src/config/config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { Chain } from "viem";
import { bsc, bscTestnet, zilliqa, zilliqaTestnet } from "viem/chains";
import fps_token from "../assets/fps_token.png";
import hrse_token from "../assets/hrse_token.png";
import test_hrse_token from "../assets/salami_hrse.webp";
import hrse_token from "../assets/hrse_token.webp";

export enum TokenManagerType {
MintAndBurn,
Expand Down Expand Up @@ -84,12 +85,14 @@ export const chainConfigs: Partial<Record<Chains, ChainConfig>> =
address: "0x8618d39a8276D931603c6Bc7306af6A53aD2F1F3",
blockExplorer:
"https://otterscan.testnet.zilliqa.com/address/0x8618d39a8276D931603c6Bc7306af6A53aD2F1F3",
logo: fps_token,
},
{
name: "TSLM",
address: "0xE90Dd366D627aCc5feBEC126211191901A69f8a0",
blockExplorer:
"https://otterscan.testnet.zilliqa.com/address/0xE90Dd366D627aCc5feBEC126211191901A69f8a0",
logo: test_hrse_token,
},
],
chainId: 33101,
Expand All @@ -110,12 +113,14 @@ export const chainConfigs: Partial<Record<Chains, ChainConfig>> =
address: "0x5190e8b4Bbe8C3a732BAdB600b57fD42ACbB9F4B",
blockExplorer:
"https://testnet.bscscan.com/address/0x5190e8b4Bbe8C3a732BAdB600b57fD42ACbB9F4B",
logo: fps_token,
},
{
name: "TST",
address: "0x7Cc585de659E8938Aa7d5709BeaF34bD108bdC03",
blockExplorer:
"https://testnet.bscscan.com/address/0x7Cc585de659E8938Aa7d5709BeaF34bD108bdC03",
logo: test_hrse_token,
},
],
chainId: 97,
Expand Down
Loading