Skip to content

Commit 1bff367

Browse files
committed
fix: remove unused vars
1 parent 17645fc commit 1bff367

File tree

1 file changed

+9
-17
lines changed

1 file changed

+9
-17
lines changed

src/app/components/Navbar/Navbar.tsx

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Link from "next/link";
55
import Image from "next/image";
66
import { usePathname } from "next/navigation";
77
import { NavbarType } from "@/types/CommonTypes";
8-
import arthritisLogo from "/public/arthritis_logo.png"; // Adjust the path as needed
8+
// import arthritisLogo from "/public/arthritis_logo.png"; // Adjust the path as needed
99

1010
export default function Navbar({ data }: { data: NavbarType }) {
1111
const { link, navbarButton } = data;
@@ -37,17 +37,15 @@ export default function Navbar({ data }: { data: NavbarType }) {
3737
href={linkUrl || "#"}
3838
className={`hover:text-blue-600 text-gray-800 font-medium ${
3939
pathname === linkUrl ? "text-blue-600" : ""
40-
}`}
41-
>
40+
}`}>
4241
{linkText}
4342
</Link>
4443
))}
4544

4645
<Link href={navbarButton?.buttonLink || "#"}>
4746
<button
4847
className="bg-[#2F7CC4] text-white rounded-[10px] text-[14px] font-medium hover:bg-[#276ca3] transition flex items-center justify-center"
49-
style={{ width: "98px", height: "38px", lineHeight: "18px" }}
50-
>
48+
style={{ width: "98px", height: "38px", lineHeight: "18px" }}>
5149
{navbarButton?.buttonText}
5250
</button>
5351
</Link>
@@ -56,17 +54,15 @@ export default function Navbar({ data }: { data: NavbarType }) {
5654
<button
5755
onClick={toggleMenu}
5856
className="md:hidden text-gray-800 focus:outline-none"
59-
aria-label="Toggle Menu"
60-
>
57+
aria-label="Toggle Menu">
6158
{isOpen ? (
6259
<svg
6360
className="w-6 h-6"
6461
fill="none"
6562
stroke="currentColor"
6663
strokeWidth="2"
6764
viewBox="0 0 24 24"
68-
xmlns="http://www.w3.org/2000/svg"
69-
>
65+
xmlns="http://www.w3.org/2000/svg">
7066
<path
7167
strokeLinecap="round"
7268
strokeLinejoin="round"
@@ -80,8 +76,7 @@ export default function Navbar({ data }: { data: NavbarType }) {
8076
stroke="currentColor"
8177
strokeWidth="2"
8278
viewBox="0 0 24 24"
83-
xmlns="http://www.w3.org/2000/svg"
84-
>
79+
xmlns="http://www.w3.org/2000/svg">
8580
<path
8681
strokeLinecap="round"
8782
strokeLinejoin="round"
@@ -95,12 +90,10 @@ export default function Navbar({ data }: { data: NavbarType }) {
9590
{isOpen && (
9691
<div
9792
className="fixed inset-0 bg-black bg-opacity-50 z-40 md:hidden"
98-
onClick={closeMenu}
99-
>
93+
onClick={closeMenu}>
10094
<div
10195
className="absolute top-0 left-0 w-64 bg-white shadow-lg h-full rounded-r-md"
102-
onClick={(e) => e.stopPropagation()}
103-
>
96+
onClick={(e) => e.stopPropagation()}>
10497
<div className="p-6 space-y-4">
10598
{link.map(({ linkText, linkUrl }) => (
10699
<Link
@@ -111,8 +104,7 @@ export default function Navbar({ data }: { data: NavbarType }) {
111104
pathname === linkUrl
112105
? "bg-gray-200 font-bold text-blue-600"
113106
: ""
114-
}`}
115-
>
107+
}`}>
116108
{linkText}
117109
</Link>
118110
))}

0 commit comments

Comments
 (0)