diff --git a/components/CopyMenu.js b/components/CopyMenu.js index 8a3447c..1d1c721 100644 --- a/components/CopyMenu.js +++ b/components/CopyMenu.js @@ -37,7 +37,7 @@ function CopyButton(props) { function CopyEmbed({ mapper, title }) { const { asPath } = useRouter() const text = React.useMemo(() => mapper(asPath), [mapper, asPath]) - const { onClick, copied } = useCopyTextHandler(text, { interval: 1000 }) + const { onClick, copied } = useCopyTextHandler(text) return {copied ? 'Copied!' : title} } diff --git a/package.json b/package.json index ad641b8..40b0916 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,7 @@ "dependencies": { "@next/bundle-analyzer": "^11.1.0", "@reach/visually-hidden": "^0.16.0", - "actionsack": "^0.0.14", + "actionsack": "^0.0.15", "axios": "^0.21.4", "cm-show-invisibles": "^3.1.0", "codemirror": "5.61.1", diff --git a/yarn.lock b/yarn.lock index 98052c7..b05e7f0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2031,10 +2031,10 @@ acorn@^6.0.1, acorn@^7.1.0, acorn@^7.1.1, acorn@^7.4.0, acorn@^7.4.1, acorn@^8.0 resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.4.1.tgz#feaed255973d2e77555b83dbc08851a6c63520fa" integrity sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A== -actionsack@^0.0.14: - version "0.0.14" - resolved "https://registry.yarnpkg.com/actionsack/-/actionsack-0.0.14.tgz#d18b47520e60bebc33fbbdbb269368bf77ba3a95" - integrity sha512-zU3Ciei2DNYQS1omEq/hJlYmlUrsxeP6jgr7ej4TrErPDMmimSGboOeTdJW8cbqH5LckpcE9kYhUilP5Vow7xw== +actionsack@^0.0.15: + version "0.0.15" + resolved "https://registry.yarnpkg.com/actionsack/-/actionsack-0.0.15.tgz#1eb0ec33e22535a50522cb3c357c695ff92c35df" + integrity sha512-oSrDF3Cpb7G9uM52E0jPn5yM2iVyVwlUOdeUNih5EYZ6W0YJTLACZW27nmYRlYQo75N7pgxNYEx+DfvY1SNM2A== dependencies: copy-to-clipboard "^3.3.1" react-click-outside "^3.0.1"