mirror of
https://github.com/NohamR/lanyard-profile-readme.git
synced 2026-05-25 04:17:18 +00:00
switch to lanyard.cnrad.dev for simpler url
This commit is contained in:
@@ -6,7 +6,7 @@ export default function Home() {
|
||||
const [userId, setUserId] = useState<null | string>(null);
|
||||
const [copyState, setCopyState] = useState("Copy");
|
||||
const copy = () => {
|
||||
navigator.clipboard.writeText(`[](https://discord.com/users/${userId})`);
|
||||
setCopyState("Copied!");
|
||||
|
||||
@@ -43,7 +43,7 @@ export default function Home() {
|
||||
{userId ? (
|
||||
<>
|
||||
<Output>
|
||||
[](https://discord.com/users/{userId})
|
||||
</Output>
|
||||
<Copy onClick={copy}>{copyState}</Copy>
|
||||
|
||||
Reference in New Issue
Block a user