Skip to content

Commit 11d44c0

Browse files
committed
refactor: add "use client" directive to NavBar components
1 parent fcb5f0a commit 11d44c0

File tree

6 files changed

+10
-2
lines changed

6 files changed

+10
-2
lines changed

src/components/NavBar/NavBar.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ import NavBarBrand from "./NavBarBrand";
66
import NavBarLeftButtons from "./NavBarLeftButtons";
77
import NavBarRightButtons from "./NavBarRightButtons";
88

9-
10-
119
const NavBar: React.FC = () => {
1210
return (
1311
<nav className={styles.navbar}>

src/components/NavBar/NavBarDropdownButton.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use client";
2+
13
import React, { useContext, useRef } from "react";
24
import { useRouter } from "next/navigation";
35
import { FaChevronDown, FaRegUserCircle, FaUserCircle } from "react-icons/fa";

src/components/NavBar/NavBarLeftButtons.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use client";
2+
13
import React from "react";
24
import { FaChevronLeft, FaChevronRight } from "react-icons/fa";
35
import styles from "../../styles/components/NavBar/NavBarLeftButtons.module.scss";

src/components/NavBar/NavBarMoreButton.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use client";
2+
13
import React from "react";
24
import { FaBars, FaTimes } from "react-icons/fa";
35
import styles from "../../styles/components/NavBar/NavBarMoreButton.module.scss";

src/components/NavBar/NavBarRightButtons.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use client";
2+
13
import React from "react";
24
import NavBarSearchButton from "./NavBarSearchButton";
35
import NavBarDropdownButton from "./NavBarDropdownButton";

src/components/NavBar/NavBarSearchButton.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
"use client";
2+
13
import Link from "next/link";
24
import React from "react";
35
import { FaSearch } from "react-icons/fa";

0 commit comments

Comments
 (0)