diff --git a/icons/mgc/exit_cute_re.svg b/icons/mgc/exit_cute_re.svg new file mode 100644 index 000000000..f98200b8d --- /dev/null +++ b/icons/mgc/exit_cute_re.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/mgc/gift_cute_re.svg b/icons/mgc/gift_cute_re.svg new file mode 100644 index 000000000..0f17f1373 --- /dev/null +++ b/icons/mgc/gift_cute_re.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/icons/mgc/user_3_cute_re.svg b/icons/mgc/user_3_cute_re.svg new file mode 100644 index 000000000..ee65411fe --- /dev/null +++ b/icons/mgc/user_3_cute_re.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/renderer/src/components/user-button.tsx b/src/renderer/src/components/user-button.tsx index be87d3d3c..11d05b1f1 100644 --- a/src/renderer/src/components/user-button.tsx +++ b/src/renderer/src/components/user-button.tsx @@ -12,6 +12,7 @@ import { cn } from "@renderer/lib/utils" import { LoginModalContent } from "@renderer/modules/auth/LoginModalContent" import { useSettingModal } from "@renderer/modules/settings/modal/hooks" import { useSession } from "@renderer/queries/auth" +import { WEB_URL } from "@shared/constants" import type { FC } from "react" import { memo } from "react" import { Link } from "react-router-dom" @@ -82,13 +83,24 @@ export const ProfileButton: FC = memo((props) => { Account -
- {user?.name} - +
+ +
+
{user?.name}
+
{user?.handle}
+
- + { + window.open(`${WEB_URL}/profile/${user?.handle}`, "_blank") + }} + > + + Profile + + { // Here we need to delay one frame, so it's two raf, @@ -97,14 +109,15 @@ export const ProfileButton: FC = memo((props) => { nextFrame(() => settingModalPresent("wallet")) }} > + Power - { nextFrame(settingModalPresent) }} > + Preferences @@ -112,15 +125,19 @@ export const ProfileButton: FC = memo((props) => { <> { - // TODO + // TODO }} > + Download Desktop app )} - Log out + + + Log out + )