Skip to content

Commit

Permalink
chore: gnosis icon, network name, explorer url and reverting rhala al…
Browse files Browse the repository at this point in the history
…ert message (#125)
  • Loading branch information
wainola authored Nov 28, 2023
1 parent a7d4a78 commit 64505fb
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 15 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cf-deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
env:
VITE_INDEXER_URL: "https://api.buildwithsygma.com"
VITE_SHARED_CONFIG_URL: "https://sygma-assets-mainnet.s3.us-east-2.amazonaws.com/shared-config-mainnet.json"
VITE_EXPLORER_URLS: '[{ "id": 1, "url": "https://etherscan.io" }, { "id": 2, "url": "https://khala.subscan.io" }, {"id": 3, "url": "https://phala.subscan.io" }, { "id": 4, "url": "https://cronoscan.com" }, { "id": 5, "url": "https://basescan.org" }]'
VITE_EXPLORER_URLS: '[{ "id": 1, "url": "https://etherscan.io" }, { "id": 2, "url": "https://khala.subscan.io" }, {"id": 3, "url": "https://phala.subscan.io" }, { "id": 4, "url": "https://cronoscan.com" }, { "id": 5, "url": "https://basescan.org" }, { "id": 6, "url": "https://gnosisscan.io/" }]'
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@1
with:
Expand Down
14 changes: 14 additions & 0 deletions public/assets/icons/gnosis.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 0 additions & 14 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,6 @@ function App(): JSX.Element {
</Routes>
</Router>
</ExplorerProvider>
<div
style={{
display: "flex",
flexDirection: "row",
justifyContent: "center",
alignItems: "center",
marginTop: "10px",
width: "100%",
}}
>
<Alert severity="error" variant="outlined">
Currently Rhala network is not available for transfers!
</Alert>
</div>
<div
style={{
display: "flex",
Expand Down
4 changes: 4 additions & 0 deletions src/utils/Helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,8 @@ export const getNetworkNames = (chainId: number): string => {
return "Mumbai"
case 137:
return "Polygon"
case 100:
return "Gnosis"
default:
return "Ethereum"
}
Expand Down Expand Up @@ -251,6 +253,8 @@ export const renderNetworkIcon = (chainId: number, classes: Record<"networkIcon"
case 80001:
case 137:
return <img src={`/assets/icons/polygon.svg`} alt="polygon" className={classes.networkIcon} />
case 100:
return <img src={`/assets/icons/gnosis.svg`} alt="gnosis" className={classes.networkIcon} />
default:
return <img src={`/assets/icons/all.svg`} alt="ethereum" className={classes.networkIcon} />
}
Expand Down

0 comments on commit 64505fb

Please sign in to comment.