diff options
| author | Wolfboy248 <georgejvindkarlsen@gmail.com> | 2025-08-25 09:47:23 +0200 |
|---|---|---|
| committer | Wolfboy248 <georgejvindkarlsen@gmail.com> | 2025-08-25 09:47:23 +0200 |
| commit | 3f0655d280e744e685b5b449d716ff1443c93690 (patch) | |
| tree | 6fff4e6608c69c15aadff61b32f1f2f55ab61ccc /frontend/src/components/Sidebar/Content.tsx | |
| parent | Restructured sidebar and implemented links var (diff) | |
| download | lphub-3f0655d280e744e685b5b449d716ff1443c93690.tar.gz lphub-3f0655d280e744e685b5b449d716ff1443c93690.tar.bz2 lphub-3f0655d280e744e685b5b449d716ff1443c93690.zip | |
Removed unnecessary imports
Diffstat (limited to 'frontend/src/components/Sidebar/Content.tsx')
| -rw-r--r-- | frontend/src/components/Sidebar/Content.tsx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/frontend/src/components/Sidebar/Content.tsx b/frontend/src/components/Sidebar/Content.tsx index 3d9533a..ceb9e67 100644 --- a/frontend/src/components/Sidebar/Content.tsx +++ b/frontend/src/components/Sidebar/Content.tsx | |||
| @@ -1,6 +1,5 @@ | |||
| 1 | import React, { useRef } from "react"; | 1 | import React from "react"; |
| 2 | import { Link, useLocation } from "react-router-dom"; | 2 | import { Link } from "react-router-dom"; |
| 3 | import { UserProfile } from "@customTypes/Profile"; | ||
| 4 | 3 | ||
| 5 | import styles from "./Sidebar.module.css"; | 4 | import styles from "./Sidebar.module.css"; |
| 6 | 5 | ||
| @@ -11,14 +10,12 @@ import { | |||
| 11 | import links from "./Links"; | 10 | import links from "./Links"; |
| 12 | 11 | ||
| 13 | interface ContentProps { | 12 | interface ContentProps { |
| 14 | profile?: UserProfile; | ||
| 15 | isSearching: boolean; | 13 | isSearching: boolean; |
| 16 | selectedButtonIndex: number | 14 | selectedButtonIndex: number |
| 17 | isSidebarOpen: boolean; | ||
| 18 | handle_sidebar_click: (clicked_sidebar_idx: number) => void; | 15 | handle_sidebar_click: (clicked_sidebar_idx: number) => void; |
| 19 | }; | 16 | }; |
| 20 | 17 | ||
| 21 | const _Content: React.FC<ContentProps> = ({ profile, isSearching, selectedButtonIndex, isSidebarOpen, handle_sidebar_click }) => { | 18 | const _Content: React.FC<ContentProps> = ({ isSearching, selectedButtonIndex, handle_sidebar_click }) => { |
| 22 | 19 | ||
| 23 | return ( | 20 | return ( |
| 24 | <div className="h-full"> | 21 | <div className="h-full"> |