diff --git a/components/Navbar.tsx b/components/Navbar.tsx
index c346752..5e9d27b 100644
--- a/components/Navbar.tsx
+++ b/components/Navbar.tsx
@@ -1,6 +1,4 @@
-import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { signOut } from "next-auth/react";
-import { faPlus, faBars, faCaretDown } from "@fortawesome/free-solid-svg-icons";
import { useEffect, useState } from "react";
import ClickAwayHandler from "@/components/ClickAwayHandler";
import Sidebar from "@/components/Sidebar";
@@ -52,16 +50,16 @@ export default function Navbar() {
const [uploadFileModal, setUploadFileModal] = useState(false);
return (
-
+
-
+
-
+
@@ -70,11 +68,12 @@ export default function Navbar() {
role="button"
className="flex min-w-[3.4rem] items-center group btn btn-accent dark:border-violet-400 text-white btn-sm px-2"
>
-
-
+
+
+
+
+
+
diff --git a/components/ProfilePhoto.tsx b/components/ProfilePhoto.tsx
index b6a8d4c..42a858d 100644
--- a/components/ProfilePhoto.tsx
+++ b/components/ProfilePhoto.tsx
@@ -1,6 +1,4 @@
import React, { useEffect, useState } from "react";
-import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
-import { faUser } from "@fortawesome/free-solid-svg-icons";
import Image from "next/image";
type Props = {
@@ -39,10 +37,7 @@ export default function ProfilePhoto({
{name ? (
{name.slice(0, 1)}
) : (
-
+
)}
diff --git a/components/SearchBar.tsx b/components/SearchBar.tsx
index 3aed4a4..99d1497 100644
--- a/components/SearchBar.tsx
+++ b/components/SearchBar.tsx
@@ -1,5 +1,3 @@
-import { faMagnifyingGlass } from "@fortawesome/free-solid-svg-icons";
-import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { useEffect, useState } from "react";
import { useRouter } from "next/router";
import { toast } from "react-hot-toast";
@@ -23,9 +21,9 @@ export default function SearchBar({ placeholder }: Props) {
{
- if (e.target.checked) {
- setTheme("dark");
- } else {
- setTheme("light");
- }
+ setTheme(e.target.checked ? "dark" : "light");
};
useEffect(() => {
@@ -36,27 +32,8 @@ export default function ToggleDarkMode({ className }: Props) {
className="theme-controller"
checked={localStorage.getItem("theme") === "light" ? false : true}
/>
-
- {/* sun icon */}
-
-
-
- {/* moon icon */}
-
+
+
);