Merge remote-tracking branch 'origin/feat_player'

This commit is contained in:
Kentai Radiquum 2024-07-29 21:39:37 +05:00
parent bb437fe7ca
commit 25e31a7799
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
62 changed files with 1508 additions and 701 deletions

View file

@ -1,14 +1,13 @@
"use client";
import Link from "next/link";
import { usePathname } from "next/navigation";
import { useUserStore } from "@/app/store/auth";
import { useUserStore } from "#/store/auth";
import { Dropdown } from "flowbite-react";
export const Navbar = () => {
const pathname = usePathname();
const userStore = useUserStore((state) => state);
const userStore: any = useUserStore((state) => state);
const isNotAuthorizedStyle = "text-gray-700";
const navLinks = [
{
id: 1,
@ -107,7 +106,7 @@ export const Navbar = () => {
}}
>
<Dropdown.Item className="text-sm md:text-base">
<Link href="/profile" className="flex items-center gap-1">
<Link href={`/profile/${userStore.user.id}`} className="flex items-center gap-1">
<span
className={`iconify ${pathname == `/profile/${userStore.user.id}` ? "font-bold mdi--user" : "mdi--user-outline"} w-4 h-4 sm:w-6 sm:h-6`}
></span>