From df529a4599c2d3060a34adc5b19f890f288986e1 Mon Sep 17 00:00:00 2001 From: Dhawal Vijayvargiya <88284372+dhawal-793@users.noreply.github.com> Date: Sat, 6 May 2023 11:45:11 +0530 Subject: [PATCH] Updated Styles, Added ThemeButton --- components/Navlinks.tsx | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/components/Navlinks.tsx b/components/Navlinks.tsx index 4341999..dbabd80 100644 --- a/components/Navlinks.tsx +++ b/components/Navlinks.tsx @@ -1,10 +1,9 @@ -"use client" +'use client' import { XMarkIcon } from "@heroicons/react/24/solid" - import { usePathname } from "next/navigation" - import { categories } from "../constants" import NavLink from "./NavLink" +import ThemeButton from "./ThemeButton" type Props = { navOpen: boolean, @@ -12,21 +11,21 @@ type Props = { className: string } - const Navlinks = ({ navOpen, handleClick, className }: Props) => { const pathName = usePathname(); const isActive = (path: string) => { return pathName?.split('/').pop() === path } return ( -