1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-22 17:33:23 +01:00

Fix #19548 - Increase address copy to clipboard time (#19948)

This commit is contained in:
David Walsh 2023-07-12 11:05:41 -05:00 committed by Dan J Miller
parent 88c433cd09
commit fac889c111

View File

@ -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 (