Run prettier
This commit is contained in:
parent
1c7b806575
commit
9bf3ddf9c4
|
@ -1,8 +1,8 @@
|
||||||
import React, { useState } from "react";
|
import React, { useState } from "react";
|
||||||
|
|
||||||
type SignatureProps = {
|
type SignatureProps = {
|
||||||
text: string
|
text: string;
|
||||||
}
|
};
|
||||||
|
|
||||||
const popover = (
|
const popover = (
|
||||||
<div className="popover fade bs-popover-right show">
|
<div className="popover fade bs-popover-right show">
|
||||||
|
@ -16,11 +16,10 @@ function Signature({ text }: SignatureProps) {
|
||||||
|
|
||||||
const copyToClipboard = () => navigator.clipboard.writeText(text);
|
const copyToClipboard = () => navigator.clipboard.writeText(text);
|
||||||
const handleClick = () =>
|
const handleClick = () =>
|
||||||
copyToClipboard()
|
copyToClipboard().then(() => {
|
||||||
.then(() => {
|
setShowPopover(true);
|
||||||
setShowPopover(true);
|
setTimeout(setShowPopover.bind(null, false), 2500);
|
||||||
setTimeout(setShowPopover.bind(null, false), 2500);
|
});
|
||||||
});
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="signature">
|
<div className="signature">
|
||||||
|
|
Loading…
Reference in New Issue