mirror of
https://github.com/Radiquum/AniX.git
synced 2025-05-03 11:29:40 +05:00
frontend: add user profile page
This commit is contained in:
parent
32a4da1a31
commit
320a36d27e
5 changed files with 194 additions and 3 deletions
17
frontend/app/profile/page.js
Normal file
17
frontend/app/profile/page.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
"use client";
|
||||
import { useUserStore } from "@/app/store/user-store";
|
||||
import { UserProfile } from "@/app/components/UserProfile/UserProfile";
|
||||
|
||||
export default function Profile() {
|
||||
const userStore = useUserStore();
|
||||
|
||||
return (
|
||||
<>
|
||||
{userStore.user ? (
|
||||
<UserProfile profile={userStore.user.profile} />
|
||||
) : (
|
||||
<progress></progress>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue