Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | import { AddressDisplayer } from './address-displayer'; import { RevealStxPasswordForm } from './reveal-stx-password-form'; import { Flex } from '@stacks/ui'; import React, { FC, useState } from 'react'; export const RevealStxAddressSoftware: FC = () => { const [address, setAddress] = useState<null | string>(null); return ( <Flex flexDirection="column" mb="extra-loose" mx="extra-loose"> {address === null ? ( <RevealStxPasswordForm onAddressDerived={address => setAddress(address)} /> ) : ( <AddressDisplayer address={address} /> )} </Flex> ); }; |