mirror of
https://github.com/NohamR/lanyard-profile-readme.git
synced 2026-05-26 13:41:32 +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 [userId, setUserId] = useState<null | string>(null);
|
||||||
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!");
|
||||||
|
|
||||||
@@ -43,7 +43,7 @@ export default function Home() {
|
|||||||
{userId ? (
|
{userId ? (
|
||||||
<>
|
<>
|
||||||
<Output>
|
<Output>
|
||||||
[](https://discord.com/users/{userId})
|
)](https://discord.com/users/{userId})
|
||||||
</Output>
|
</Output>
|
||||||
<Copy onClick={copy}>{copyState}</Copy>
|
<Copy onClick={copy}>{copyState}</Copy>
|
||||||
|
|||||||
Reference in New Issue
Block a user