CryptoAddress: use new CopyableInput component

environments/review-embeds-imp-92xzg5/deployments/844
Alex Gleason 2 years ago
parent 3909c74c00
commit 48ba485a0d
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

@ -2,8 +2,8 @@ import React from 'react';
import { useDispatch } from 'react-redux'; import { useDispatch } from 'react-redux';
import { openModal } from 'soapbox/actions/modals'; import { openModal } from 'soapbox/actions/modals';
import CopyableInput from 'soapbox/components/copyable-input';
import { Text, Icon, Stack, HStack } from 'soapbox/components/ui'; import { Text, Icon, Stack, HStack } from 'soapbox/components/ui';
import { CopyableInput } from 'soapbox/features/forms';
import { getExplorerUrl } from '../utils/block_explorer'; import { getExplorerUrl } from '../utils/block_explorer';
import { getTitle } from '../utils/coin_db'; import { getTitle } from '../utils/coin_db';
@ -57,9 +57,7 @@ const CryptoAddress: React.FC<ICryptoAddress> = (props): JSX.Element => {
<Text>{note}</Text> <Text>{note}</Text>
)} )}
<div className='crypto-address__address simple_form'> <CopyableInput value={address} />
<CopyableInput value={address} />
</div>
</Stack> </Stack>
); );
}; };

Loading…
Cancel
Save