mirror of
https://github.com/Radiquum/AniX.git
synced 2025-05-03 03:19:41 +05:00
frontend: profile and other minor improvements
This commit is contained in:
parent
1a83a80e07
commit
9392345480
5 changed files with 134 additions and 8 deletions
|
@ -1,16 +1,21 @@
|
|||
"use client";
|
||||
import { useUserStore } from "@/app/store/user-store";
|
||||
import { UserProfile } from "@/app/components/UserProfile/UserProfile";
|
||||
import { LogInNeeded } from "../components/LogInNeeded/LogInNeeded";
|
||||
|
||||
export default function Profile() {
|
||||
const userStore = useUserStore();
|
||||
|
||||
return (
|
||||
<>
|
||||
{userStore.user ? (
|
||||
<UserProfile profile={userStore.user.profile} />
|
||||
{userStore.isAuth ? (
|
||||
userStore.user ? (
|
||||
<UserProfile profile={userStore.user.profile} />
|
||||
) : (
|
||||
<progress></progress>
|
||||
)
|
||||
) : (
|
||||
<progress></progress>
|
||||
<LogInNeeded />
|
||||
)}
|
||||
</>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue