feat: display profile picture

This commit is contained in:
Henry
2025-01-22 13:35:44 +00:00
parent ef8f42a460
commit 0bd23d24ac
12 changed files with 130 additions and 74 deletions

View File

@@ -1,4 +1,4 @@
import { usePathname } from "next/navigation";
import { useRouter } from "next/router";
import boardsIconDark from "~/assets/boards-dark.json";
import boardsIconLight from "~/assets/boards-light.json";
@@ -25,7 +25,10 @@ export default function SideNavigation({
user,
isLoading,
}: SideNavigationProps) {
const pathname = usePathname();
const router = useRouter();
const { pathname } = router;
const { activeTheme } = useTheme();
const isDarkMode = activeTheme === "dark";