Skip to content

Commit

Permalink
replace starknet text with icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikhl Goyal committed Feb 13, 2024
1 parent 88e9608 commit fdb7d8d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
20 changes: 20 additions & 0 deletions src/assets/svg/starknet.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 5 additions & 1 deletion src/components/Web3Status/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import { BaseButton, ButtonSecondary, ButtonSize, ThemeButton } from '../Button'
import { RowBetween } from '../Row'
import { useStarkName } from '@starknet-react/core'
import { ChainId } from '@vnaysn/jediswap-sdk-core'
import StarknetIcon from 'assets/svg/starknet.svg'

const FULL_BORDER_RADIUS = 9999

Expand Down Expand Up @@ -122,7 +123,10 @@ function Web3StatusInner() {
return (
<NetworkContainer>
<NetworkSelected data-testid="web3-status-connected" onClick={handleWalletDropdownClick}>
<Text>Starknet {chainId === ChainId.MAINNET ? 'Mainnet' : 'Goerli'}</Text>
<IconWrapper size={20}>
<img src={StarknetIcon} alt="Starknet" />
</IconWrapper>
<Text>{chainId === ChainId.MAINNET ? 'Mainnet' : 'Goerli'}</Text>
</NetworkSelected>
<Web3StatusConnected data-testid="web3-status-connected" onClick={handleWalletDropdownClick}>
<StatusIcon account={address} connection={connector} size={40} />
Expand Down

0 comments on commit fdb7d8d

Please sign in to comment.