mirror of
https://github.com/NohamR/lanyard-profile-readme.git
synced 2026-11-25 15:30:01 +00:00
fix copy state cause of prettier bruh
This commit is contained in:
1 parent
acc71041e8
commit
1b0496ef9f
1 file changed
+3
-2
+3
-2
@@ -9,8 +9,9 @@ export default function Home() {
|
||||
const [userError, setUserError] = useState<string>();
|
||||
const [copyState, setCopyState] = useState("Copy");
|
||||
const copy = () => {
|
||||
navigator.clipboard.writeText(`[](https://discord.com/users/${userId})`);
|
||||
navigator.clipboard.writeText(
|
||||
`[](https://discord.com/users/${userId})`
|
||||
);
|
||||
setCopyState("Copied!");
|
||||
|
||||
setTimeout(() => setCopyState("Copy"), 1500);
|
||||
|
||||
Reference in new issue
Block a user