uniswap-interface-uncensored/functions/utils/getNetworkLogoURL.ts
Brendan Wong cccf6ac680
fix: add assets to public folder (#7153)
* fix: add assets to public folder

* Update global-teardown.ts

* update assets

* resize logos
2023-08-17 16:15:17 -04:00

17 lines
525 B
TypeScript

import { Chain } from '../../src/graphql/data/__generated__/types-and-hooks'
export default function getNetworkLogoUrl(network: string, origin: string) {
switch (network) {
case Chain.Polygon:
return origin + '/images/logos/Polygon_Logo.png'
case Chain.Arbitrum:
return origin + '/images/logos/Arbitrum_Logo.png'
case Chain.Optimism:
return origin + '/images/logos/Optimism_Logo.png'
case Chain.Celo:
return origin + '/images/logos/Celo_Logo.png'
default:
return ''
}
}