mirror of
https://github.com/luxfi/explore.git
synced 2026-09-24 00:28:18 +00:00
38 lines
1.2 KiB
TypeScript
38 lines
1.2 KiB
TypeScript
import { Box, chakra, Flex } from '@chakra-ui/react';
|
|
import React from 'react';
|
|
|
|
import { Alert } from 'toolkit/chakra/alert';
|
|
import { Button } from 'toolkit/chakra/button';
|
|
|
|
interface Props {
|
|
onShowListClick: () => void;
|
|
onAddTokenInfoClick: () => void;
|
|
isToken?: boolean;
|
|
address: string;
|
|
}
|
|
|
|
const AddressVerificationStepSuccess = ({ onAddTokenInfoClick, onShowListClick, isToken, address }: Props) => {
|
|
return (
|
|
<Box>
|
|
<Alert status="success" descriptionProps={{ whiteSpace: 'pre-wrap', wordBreak: 'break-word' }} mb={ 3 } display="inline-block">
|
|
<span>The address ownership for </span>
|
|
<chakra.span fontWeight={ 700 }>{ address }</chakra.span>
|
|
<span> is verified.</span>
|
|
</Alert>
|
|
<p>You may now submit the “Add token information” request</p>
|
|
<Flex alignItems="center" mt={ 8 } columnGap={ 5 } flexWrap="wrap" rowGap={ 5 }>
|
|
<Button variant={ isToken ? 'outline' : 'solid' } onClick={ onShowListClick }>
|
|
View my verified addresses
|
|
</Button>
|
|
{ isToken && (
|
|
<Button onClick={ onAddTokenInfoClick }>
|
|
Add token information
|
|
</Button>
|
|
) }
|
|
</Flex>
|
|
</Box>
|
|
);
|
|
};
|
|
|
|
export default React.memo(AddressVerificationStepSuccess);
|