diff --git a/app/components/Modals/Modals.js b/app/components/Modals/Modals.js index d9a2c23c..4402415c 100644 --- a/app/components/Modals/Modals.js +++ b/app/components/Modals/Modals.js @@ -46,7 +46,7 @@ class Modals extends React.Component { - + diff --git a/app/scenes/DocumentShare/DocumentShare.js b/app/scenes/DocumentShare/DocumentShare.js index c5d0901e..4ddace7d 100644 --- a/app/scenes/DocumentShare/DocumentShare.js +++ b/app/scenes/DocumentShare/DocumentShare.js @@ -10,6 +10,7 @@ import Document from 'models/Document'; type Props = { document: Document, + onCopyLink: () => *, }; @observer @@ -23,7 +24,11 @@ class DocumentShare extends React.Component { handleCopied = () => { this.isCopied = true; - this.timeout = setTimeout(() => (this.isCopied = false), 3000); + + this.timeout = setTimeout(() => { + this.isCopied = false; + this.props.onCopyLink(); + }, 2000); }; render() {