feat: add release user list and release user favorite to the ReleaseLink on Index and Index Category pages

This commit is contained in:
Kentai Radiquum 2024-07-14 14:35:02 +05:00
parent c4a9b4f91a
commit 35c79559ab
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
5 changed files with 68 additions and 22 deletions

View file

@ -5,7 +5,7 @@ import { useUserStore } from "@/app/store/auth";
export const Navbar = () => {
const pathname = usePathname();
const userStore = useUserStore();
const userStore = useUserStore((state) => state);
const isNotAuthorizedStyle = "text-gray-700";
const navLinks = [
@ -85,7 +85,7 @@ export const Navbar = () => {
);
})}
</nav>
{userStore.user ? (
{userStore.isAuth ? (
<div className="flex items-center justify-center gap-2">
<img src={userStore.user.avatar} alt="" className="w-8 h-8 rounded-full" />
<p>{userStore.user.login}</p>