frontend: profile and other minor improvements

This commit is contained in:
Kentai Radiquum 2024-04-26 04:20:59 +05:00
parent 1a83a80e07
commit 9392345480
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
5 changed files with 134 additions and 8 deletions

View file

@ -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 />
)}
</>
);