diff options
Diffstat (limited to 'frontend/src/components/Sidebar/Footer.tsx')
| -rw-r--r-- | frontend/src/components/Sidebar/Footer.tsx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/frontend/src/components/Sidebar/Footer.tsx b/frontend/src/components/Sidebar/Footer.tsx index 8e910b3..3b0d543 100644 --- a/frontend/src/components/Sidebar/Footer.tsx +++ b/frontend/src/components/Sidebar/Footer.tsx | |||
| @@ -4,12 +4,9 @@ import { Link } from "react-router-dom"; | |||
| 4 | import styles from "./Sidebar.module.css"; | 4 | import styles from "./Sidebar.module.css"; |
| 5 | 5 | ||
| 6 | import { UserProfile } from "@customTypes/Profile"; | 6 | import { UserProfile } from "@customTypes/Profile"; |
| 7 | import Login from "@components/Login"; | ||
| 8 | 7 | ||
| 9 | import { | 8 | import { |
| 10 | UploadIcon, | 9 | UploadIcon, |
| 11 | BookIcon, | ||
| 12 | HelpIcon, | ||
| 13 | } from "../../images/Images"; | 10 | } from "../../images/Images"; |
| 14 | 11 | ||
| 15 | import links from "./Links"; | 12 | import links from "./Links"; |
| @@ -19,12 +16,13 @@ interface FooterProps { | |||
| 19 | isSearching: boolean; | 16 | isSearching: boolean; |
| 20 | selectedButtonIndex: number; | 17 | selectedButtonIndex: number; |
| 21 | onUploadRun: () => void; | 18 | onUploadRun: () => void; |
| 22 | setProfile: React.Dispatch<React.SetStateAction<UserProfile | undefined>>; | 19 | // currently unused, but needed for login component |
| 23 | setToken: React.Dispatch<React.SetStateAction<string | undefined>>; | 20 | // setProfile: React.Dispatch<React.SetStateAction<UserProfile | undefined>>; |
| 21 | // setToken: React.Dispatch<React.SetStateAction<string | undefined>>; | ||
| 24 | handle_sidebar_click: (clicked_sidebar_idx: number) => void; | 22 | handle_sidebar_click: (clicked_sidebar_idx: number) => void; |
| 25 | }; | 23 | }; |
| 26 | 24 | ||
| 27 | const _Footer: React.FC<FooterProps> = ({ profile, isSearching, selectedButtonIndex, onUploadRun, setToken, setProfile, handle_sidebar_click }) => { | 25 | const _Footer: React.FC<FooterProps> = ({ profile, isSearching, selectedButtonIndex, onUploadRun, handle_sidebar_click }) => { |
| 28 | const uploadRunRef = useRef<HTMLButtonElement>(null); | 26 | const uploadRunRef = useRef<HTMLButtonElement>(null); |
| 29 | 27 | ||
| 30 | return ( | 28 | return ( |