-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: use chain not supported component rfox unstake and change address (
#7600) Co-authored-by: Apotheosis <0xapotheosis@gmail.com>
- Loading branch information
1 parent
2367d40
commit 66952c1
Showing
4 changed files
with
66 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
import { Center } from '@chakra-ui/react' | ||
import type { ChainId } from '@shapeshiftoss/caip' | ||
import { foxAssetId } from '@shapeshiftoss/caip' | ||
import type { FC } from 'react' | ||
import { useTranslate } from 'react-polyglot' | ||
import { AssetIcon } from 'components/AssetIcon' | ||
import { RawText, Text } from 'components/Text' | ||
import { chainIdToChainDisplayName } from 'lib/utils' | ||
|
||
type ChainNotSupportedProps = { | ||
chainId: ChainId | undefined | ||
} | ||
|
||
export const ChainNotSupported: FC<ChainNotSupportedProps> = ({ chainId }) => { | ||
const translate = useTranslate() | ||
|
||
if (!chainId) return null | ||
|
||
const chainLabel = chainIdToChainDisplayName(chainId) | ||
|
||
return ( | ||
<Center flexDir={'column'}> | ||
<AssetIcon size='lg' assetId={foxAssetId} showNetworkIcon={false} mb={4} /> | ||
<Text translation='RFOX.noSupportedChains' fontSize='xl' fontWeight={'bold'} mb={4} /> | ||
<RawText fontSize='md' color='gray.400' mb={4} textAlign={'center'}> | ||
{translate('RFOX.noSupportedChainsDescription', { chainLabel })} | ||
</RawText> | ||
</Center> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters