diff --git a/frontend/frontend/src/components/TabSwitcher.tsx b/frontend/frontend/src/components/TabSwitcher.tsx index 591416fa..a934c518 100644 --- a/frontend/frontend/src/components/TabSwitcher.tsx +++ b/frontend/frontend/src/components/TabSwitcher.tsx @@ -11,7 +11,7 @@ import { grey } from '@mui/material/colors' import { Box, MenuItem, Select } from '@mui/material' interface TabSwitcherProps { - selectedYear: number + selectedYear?: number setSelectedYear: (year: number) => void titles: string[] nodes: ReactNode[] @@ -49,37 +49,39 @@ export default function TabSwitcher({ ))} - - - + + + )} {nodes.map((node, index) => ( diff --git a/frontend/frontend/src/pages/subjectsPage/SubjectsPage.tsx b/frontend/frontend/src/pages/subjectsPage/SubjectsPage.tsx index 86909b4b..91a52e1d 100644 --- a/frontend/frontend/src/pages/subjectsPage/SubjectsPage.tsx +++ b/frontend/frontend/src/pages/subjectsPage/SubjectsPage.tsx @@ -271,6 +271,8 @@ export function SubjectsPage() { /> ) : ( undefined} titles={[ 'current_projects', 'archived', @@ -400,6 +402,8 @@ export function SubjectsPage() { /> ) : ( undefined} titles={[ 'current_projects', 'archived',