1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +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 GitHub
parent c206200918
commit e329818dab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 (