Skip to content

Commit

Permalink
chore: holesky and mumbai, chain ids and icon render
Browse files Browse the repository at this point in the history
  • Loading branch information
wainola committed Nov 13, 2023
1 parent 5b3db71 commit eab39a5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/utils/Helpers.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ export const getNetworkNames = (chainId: number): string => {
case 338:
case 25:
return "Cronos"
case 17000:
return "Holesky"
case 80001:
return "Mumbai"
default:
return "Ethereum"
}
Expand Down Expand Up @@ -229,6 +233,7 @@ export const renderNetworkIcon = (chainId: number, classes: Record<"networkIcon"
switch (chainId) {
case 5:
case 11155111:
case 17000:
return <img src={`/assets/icons/all.svg`} alt="ethereum" className={classes.networkIcon} />
case 5231:
case 5233:
Expand All @@ -241,6 +246,8 @@ export const renderNetworkIcon = (chainId: number, classes: Record<"networkIcon"
case 338:
case 25:
return <img src={`/assets/icons/cronos.svg`} alt="cronos" className={classes.networkIcon} />
case 80001:
return <img src={`/assets/icons/polygon.svg`} alt="polygon" className={classes.networkIcon} />
default:
return <img src={`/assets/icons/all.svg`} alt="ethereum" className={classes.networkIcon} />
}
Expand Down

0 comments on commit eab39a5

Please sign in to comment.