fix chrome from copy format (#455)

This commit is contained in:
ATF98 2023-02-18 10:21:15 +03:00 committed by GitHub
parent c271eef6dd
commit 69023de9a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,8 @@ export default class CopyButton extends Component {
this.state = { isCopied: false }; this.state = { isCopied: false };
} }
handleCopy = () => { handleCopy = (copiedText) => {
navigator.clipboard.writeText(copiedText);
this.setState({ isCopied: true }); this.setState({ isCopied: true });
}; };