CryptoAddress: use new CopyableInput component
This commit is contained in:
parent
3909c74c00
commit
48ba485a0d
1 changed files with 2 additions and 4 deletions
|
@ -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…
Reference in a new issue