Skip to content

Commit

Permalink
feat: add opbnb to tokenImageChainNameMapping
Browse files Browse the repository at this point in the history
  • Loading branch information
ChefJerry committed Dec 18, 2023
1 parent fd401e7 commit 1d70f56
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions apps/web/src/components/TokenImage/index.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { ChainId } from '@pancakeswap/chains'
import { Token } from '@pancakeswap/sdk'
import {
ImageProps,
TokenImage as UIKitTokenImage,
TokenPairImage as UIKitTokenPairImage,
TokenPairImageProps as UIKitTokenPairImageProps,
TokenImage as UIKitTokenImage,
ImageProps,
} from '@pancakeswap/uikit'
import { Token } from '@pancakeswap/sdk'
import { ChainId } from '@pancakeswap/chains'

interface TokenPairImageProps extends Omit<UIKitTokenPairImageProps, 'primarySrc' | 'secondarySrc'> {
primaryToken: Token
Expand All @@ -20,6 +20,7 @@ export const tokenImageChainNameMapping = {
[ChainId.ARBITRUM_ONE]: 'arbitrum/',
[ChainId.LINEA]: 'linea/',
[ChainId.BASE]: 'base/',
[ChainId.OPBNB]: 'opbnb/',
}

const getImageUrlFromToken = (token: Token) => {
Expand Down

0 comments on commit 1d70f56

Please sign in to comment.