From 3f0655d280e744e685b5b449d716ff1443c93690 Mon Sep 17 00:00:00 2001 From: Wolfboy248 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>; - profile?: UserProfile; setProfile: React.Dispatch>; + profile?: UserProfile; onUploadRun: () => void; } const Sidebar: React.FC = ({ setToken, - profile, setProfile, + profile, onUploadRun, }) => { const [isSearching, setIsSearching] = React.useState(false); - const [isSidebarOpen, setSidebarOpen] = React.useState(false); const [selectedButtonIndex, setSelectedButtonIndex] = React.useState(1); const location = useLocation(); @@ -67,14 +66,14 @@ const Sidebar: React.FC = ({
{/* 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} />
- <_Search profile={profile} isSearching={isSearching} /> + <_Search profile={profile} />
-- cgit v1.2.3