mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-30 18:09:40 +05:00
feat: add release user list and release user favorite to the ReleaseLink on Index and Index Category pages
This commit is contained in:
parent
c4a9b4f91a
commit
35c79559ab
5 changed files with 68 additions and 22 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue