mirror of
https://github.com/NohamR/lanyard-profile-readme.git
synced 2026-05-26 13:41:32 +00:00
fix copy state cause of prettier bruh
This commit is contained in:
@@ -9,8 +9,9 @@ export default function Home() {
|
|||||||
const [userError, setUserError] = useState<string>();
|
const [userError, setUserError] = useState<string>();
|
||||||
const [copyState, setCopyState] = useState("Copy");
|
const [copyState, setCopyState] = useState("Copy");
|
||||||
const copy = () => {
|
const copy = () => {
|
||||||
navigator.clipboard.writeText(`[](https://discord.com/users/${userId})`);
|
`[](https://discord.com/users/${userId})`
|
||||||
|
);
|
||||||
setCopyState("Copied!");
|
setCopyState("Copied!");
|
||||||
|
|
||||||
setTimeout(() => setCopyState("Copy"), 1500);
|
setTimeout(() => setCopyState("Copy"), 1500);
|
||||||
|
|||||||
Reference in New Issue
Block a user