Run prettier

This commit is contained in:
Nick Brown 2020-04-17 00:47:08 -07:00 committed by Michael Vines
parent 1c7b806575
commit 9bf3ddf9c4
1 changed files with 6 additions and 7 deletions

View File

@ -1,8 +1,8 @@
import React, { useState } from "react";
type SignatureProps = {
text: string
}
text: string;
};
const popover = (
<div className="popover fade bs-popover-right show">
@ -16,11 +16,10 @@ function Signature({ text }: SignatureProps) {
const copyToClipboard = () => navigator.clipboard.writeText(text);
const handleClick = () =>
copyToClipboard()
.then(() => {
setShowPopover(true);
setTimeout(setShowPopover.bind(null, false), 2500);
});
copyToClipboard().then(() => {
setShowPopover(true);
setTimeout(setShowPopover.bind(null, false), 2500);
});
return (
<div className="signature">