Skip to content

Commit

Permalink
fix(clipboard): Increase DEFAULT copy to clipboard time
Browse files Browse the repository at this point in the history
  • Loading branch information
HowardBraham committed Jul 13, 2023
1 parent 719d8a4 commit 62ed16d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/hooks/useCopyToClipboard.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useState, useCallback } from 'react';
import copyToClipboard from 'copy-to-clipboard';
import { SECOND } from '../../shared/constants/time';
import { MINUTE } from '../../shared/constants/time';
import { useTimeout } from './useTimeout';

/**
Expand All @@ -9,7 +9,7 @@ import { useTimeout } from './useTimeout';
* @param {number} [delay=3000] - delay in ms
* @returns {[boolean, Function]}
*/
const DEFAULT_DELAY = SECOND * 3;
const DEFAULT_DELAY = MINUTE;

export function useCopyToClipboard(delay = DEFAULT_DELAY) {
const [copied, setCopied] = useState(false);
Expand Down

0 comments on commit 62ed16d

Please sign in to comment.