completionId: cgen-076e895821b64358bafd131799da9754
cgen-076e895821b64358bafd131799da9754
This commit is contained in:
parent
ea9e55f94d
commit
9bebfaf956
1 changed files with 12 additions and 0 deletions
|
|
@ -386,6 +386,18 @@ const ProfilePassport = () => {
|
||||||
profile.username.toLowerCase())),
|
profile.username.toLowerCase())),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const profileUrl = profile?.username
|
||||||
|
? `https://${profile.username}.aethex.me`
|
||||||
|
: "";
|
||||||
|
|
||||||
|
const copyProfileLink = () => {
|
||||||
|
if (profileUrl) {
|
||||||
|
navigator.clipboard.writeText(profileUrl);
|
||||||
|
setProfileLinkCopied(true);
|
||||||
|
setTimeout(() => setProfileLinkCopied(false), 2000);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
if (loading) {
|
if (loading) {
|
||||||
return <LoadingScreen message="Loading AeThex passport..." />;
|
return <LoadingScreen message="Loading AeThex passport..." />;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue