completionId: cgen-03cf87fe534544b2813a58084a2ad224
cgen-03cf87fe534544b2813a58084a2ad224
This commit is contained in:
parent
944d8424d0
commit
502d9bdef7
1 changed files with 12 additions and 0 deletions
|
|
@ -182,6 +182,18 @@ export default function Dashboard() {
|
|||
}
|
||||
};
|
||||
|
||||
const profileUrl = profile?.username
|
||||
? `https://${profile.username}.aethex.me`
|
||||
: "";
|
||||
|
||||
const copyProfileLink = () => {
|
||||
if (profileUrl) {
|
||||
navigator.clipboard.writeText(profileUrl);
|
||||
setProfileLinkCopied(true);
|
||||
setTimeout(() => setProfileLinkCopied(false), 2000);
|
||||
}
|
||||
};
|
||||
|
||||
if (authLoading) {
|
||||
return <LoadingScreen message="Loading dashboard..." />;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue