From 3f0655d280e744e685b5b449d716ff1443c93690 Mon Sep 17 00:00:00 2001
From: Wolfboy248 <georgejvindkarlsen@gmail.com>
Date: Mon, 25 Aug 2025 09:47:23 +0200
Subject: Removed unnecessary imports

---
 frontend/src/components/Sidebar/Sidebar.tsx | 15 +++++++--------
 1 file changed, 7 insertions(+), 8 deletions(-)

(limited to 'frontend/src/components/Sidebar/Sidebar.tsx')

diff --git a/frontend/src/components/Sidebar/Sidebar.tsx b/frontend/src/components/Sidebar/Sidebar.tsx
index 1d58d2e..77e23a6 100644
--- a/frontend/src/components/Sidebar/Sidebar.tsx
+++ b/frontend/src/components/Sidebar/Sidebar.tsx
@@ -1,5 +1,5 @@
-import React, { useCallback, useRef } from "react";
-import { Link, useLocation } from "react-router-dom";
+import React, { useCallback } from "react";
+import { useLocation } from "react-router-dom";
 import { UserProfile } from "@customTypes/Profile";
 
 import _Header from "./Header";
@@ -10,19 +10,18 @@ import links from "./Links";
 
 interface SidebarProps {
   setToken: React.Dispatch<React.SetStateAction<string | undefined>>;
-  profile?: UserProfile;
   setProfile: React.Dispatch<React.SetStateAction<UserProfile | undefined>>;
+  profile?: UserProfile;
   onUploadRun: () => void;
 }
 
 const Sidebar: React.FC<SidebarProps> = ({
   setToken,
-  profile,
   setProfile,
+  profile,
   onUploadRun,
 }) => {
   const [isSearching, setIsSearching] = React.useState<boolean>(false);
-  const [isSidebarOpen, setSidebarOpen] = React.useState<boolean>(false);
   const [selectedButtonIndex, setSelectedButtonIndex] = React.useState<number>(1);
 
   const location = useLocation();
@@ -67,14 +66,14 @@ const Sidebar: React.FC<SidebarProps> = ({
       <div className="flex flex-1 overflow-hidden w-full not-md:hidden ">
         <div className={`flex flex-col transition-all duration-300 ${isSearching ? "w-[64px]" : "w-full"}`}>
           {/* Sidebar Content */}
-          <_Content profile={profile} isSearching={isSearching} selectedButtonIndex={selectedButtonIndex} isSidebarOpen={isSidebarOpen} handle_sidebar_click={handle_sidebar_click} />
+          <_Content isSearching={isSearching} selectedButtonIndex={selectedButtonIndex} handle_sidebar_click={handle_sidebar_click} />
 
           {/* Bottom Section */}
-          <_Footer profile={profile} isSearching={isSearching} selectedButtonIndex={selectedButtonIndex} onUploadRun={onUploadRun} setToken={setToken} setProfile={setProfile} handle_sidebar_click={handle_sidebar_click} />
+          <_Footer profile={profile} isSearching={isSearching} selectedButtonIndex={selectedButtonIndex} onUploadRun={onUploadRun} handle_sidebar_click={handle_sidebar_click} />
         </div>
 
         <div className={`flex bg-panel ${isSearching ? 'w-full' : "w-0"}`}>
-          <_Search profile={profile} isSearching={isSearching} />
+          <_Search profile={profile} />
         </div>
 
       </div>
-- 
cgit v1.2.3

