diff options
| author | Max Nanis | 2026-09-29 11:47:48 -0700 |
|---|---|---|
| committer | Max Nanis | 2026-09-29 11:47:48 -0700 |
| commit | cd173e67e4e0514271371f4a5e5136f7f61d06d1 (patch) | |
| tree | 03d389b22cc02a4b1dd702eca0db1f13a43c4e3f /jb-ui/src/components/UserAccount.tsx | |
| parent | 08643310a783d4da5212ef419ee8d909f683f8e2 (diff) | |
| download | amt-jb-dev.tar.gz amt-jb-dev.zip | |
Redemption Modal. Redemption Magic flow. User Account Icondev
Diffstat (limited to 'jb-ui/src/components/UserAccount.tsx')
| -rw-r--r-- | jb-ui/src/components/UserAccount.tsx | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/jb-ui/src/components/UserAccount.tsx b/jb-ui/src/components/UserAccount.tsx new file mode 100644 index 0000000..5aef031 --- /dev/null +++ b/jb-ui/src/components/UserAccount.tsx @@ -0,0 +1,25 @@ +import { useGetMeQuery } from "@/models/authAPI"; + +const UserAccount = () => { + const { data: user } = useGetMeQuery(); + + if (!user?.product_user_id) return null; + + return ( + <div + className="fixed bottom-21 right-0 p-2 + bg-slate-700 text-zinc-200 z-50 + font-mono + " + > + <div className="grid grid-cols-[auto_1fr] text-xs"> + <div className="label text-left pr-2">Email:</div> + <div className="value text-left">{user.email} </div> + <div className="label text-left pr-2">Name:</div> + <div className="value text-left">{user.display_name ?? "___"}</div>{" "} + </div> + </div> + ); +}; + +export default UserAccount; |
