Skip to content

Commit

Permalink
added: chain and token logos in selection dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Salmandabbakuti committed Oct 7, 2024
1 parent f2b2fa4 commit 0595839
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 4 deletions.
21 changes: 21 additions & 0 deletions frontend/public/eth-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions frontend/public/poly-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/public/xt-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 12 additions & 4 deletions frontend/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,13 @@ export default function App() {
style={{ maxWidth: 300 }}
onChange={setFromToken}
>
<Option value="xt-p">XT on Polygon</Option>
<Option value="xt-p">
<img src="./xt-logo.png" alt="xt" width="15" /> XT on{" "}
<img src="./poly-logo.svg" alt="polygon" width="15" /> Polygon
</Option>
<Option value="xt-s" disabled>
XT on Sepolia
<img src="./xt-logo.png" alt="xt" width="15" /> XT on{" "}
<img src="./eth-logo.svg" alt="sepolia" width="10" /> Sepolia
</Option>
</Select>
</div>
Expand Down Expand Up @@ -297,9 +301,13 @@ export default function App() {
style={{ maxWidth: 300 }}
onChange={setToToken}
>
<Option value="xt-s">XT on Sepolia</Option>
<Option value="xt-s">
<img src="./xt-logo.png" alt="xt" width="15" /> XT on{" "}
<img src="./eth-logo.svg" alt="sepolia" width="10" /> Sepolia
</Option>
<Option value="xt-p" disabled>
XT on Polygon
<img src="./xt-logo.png" alt="xt" width="15" /> XT on{" "}
<img src="./poly-logo.svg" alt="polygon" width="15" /> Polygon
</Option>
</Select>
</div>
Expand Down

0 comments on commit 0595839

Please sign in to comment.