mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-22 17:33:23 +01:00
parent
88c433cd09
commit
fac889c111
@ -14,6 +14,7 @@ import { useCopyToClipboard } from '../../../hooks/useCopyToClipboard';
|
||||
import { shortenAddress } from '../../../helpers/utils/util';
|
||||
import Tooltip from '../../ui/tooltip/tooltip';
|
||||
import { useI18nContext } from '../../../hooks/useI18nContext';
|
||||
import { MINUTE } from '../../../../shared/constants/time';
|
||||
|
||||
export const AddressCopyButton = ({
|
||||
address,
|
||||
@ -22,7 +23,7 @@ export const AddressCopyButton = ({
|
||||
onClick,
|
||||
}) => {
|
||||
const displayAddress = shorten ? shortenAddress(address) : address;
|
||||
const [copied, handleCopy] = useCopyToClipboard();
|
||||
const [copied, handleCopy] = useCopyToClipboard(MINUTE);
|
||||
const t = useI18nContext();
|
||||
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user