Run prettier
This commit is contained in:
parent
1c7b806575
commit
9bf3ddf9c4
|
@ -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,8 +16,7 @@ function Signature({ text }: SignatureProps) {
|
|||
|
||||
const copyToClipboard = () => navigator.clipboard.writeText(text);
|
||||
const handleClick = () =>
|
||||
copyToClipboard()
|
||||
.then(() => {
|
||||
copyToClipboard().then(() => {
|
||||
setShowPopover(true);
|
||||
setTimeout(setShowPopover.bind(null, false), 2500);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue