From 63ccba4bfda19f2cf37ed9b0ceffef8119c9fcc2 Mon Sep 17 00:00:00 2001 From: Giang Vu Date: Wed, 9 Oct 2024 00:59:34 +1100 Subject: [PATCH] feat: remove building tab on input page --- frontend/src/components/ProceedButton.tsx | 2 +- frontend/src/components/Sidebar.tsx | 9 --------- frontend/src/pages/SendData.tsx | 2 +- frontend/src/pages/spreadsheets/Building.tsx | 19 ------------------- frontend/src/routes.tsx | 2 -- 5 files changed, 2 insertions(+), 32 deletions(-) delete mode 100644 frontend/src/pages/spreadsheets/Building.tsx diff --git a/frontend/src/components/ProceedButton.tsx b/frontend/src/components/ProceedButton.tsx index b73b8ca..a43e5ee 100644 --- a/frontend/src/components/ProceedButton.tsx +++ b/frontend/src/components/ProceedButton.tsx @@ -19,6 +19,6 @@ export default function ProceedButton({ fileChosen }: ProceedButtonProps) { if (fileChosen === null) { return } else { - return ; + return ; } } \ No newline at end of file diff --git a/frontend/src/components/Sidebar.tsx b/frontend/src/components/Sidebar.tsx index fd86d43..777a4cd 100644 --- a/frontend/src/components/Sidebar.tsx +++ b/frontend/src/components/Sidebar.tsx @@ -42,15 +42,6 @@ export default function Sidebar({ marginTop, width }: SidebarProps) { > - - - - - - - - - diff --git a/frontend/src/pages/SendData.tsx b/frontend/src/pages/SendData.tsx index db097c0..0e353d2 100644 --- a/frontend/src/pages/SendData.tsx +++ b/frontend/src/pages/SendData.tsx @@ -57,7 +57,7 @@ export default function SendData() {
- +
diff --git a/frontend/src/pages/spreadsheets/Building.tsx b/frontend/src/pages/spreadsheets/Building.tsx deleted file mode 100644 index be3ccc9..0000000 --- a/frontend/src/pages/spreadsheets/Building.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import Spreadsheet from '../../components/Spreadsheet.tsx' -import { DB_BUILDINGS } from '../../scripts/persistence.ts'; - -/** - * - * @returns Spreadsheet input page for buildings information. - */ -export default function Building() { - - return ( - <> -

Building

- - - ); -}; \ No newline at end of file diff --git a/frontend/src/routes.tsx b/frontend/src/routes.tsx index 7fe3ed8..fcdc0c5 100644 --- a/frontend/src/routes.tsx +++ b/frontend/src/routes.tsx @@ -1,6 +1,5 @@ import SemesterInfo from './pages/SemesterInfo.tsx' import TimetableMod from './pages/TimetableMod.tsx' -import Building from './pages/spreadsheets/Building.tsx' import Room from './pages/spreadsheets/Room.tsx' import Unit from './pages/spreadsheets/Unit.tsx' import Download from './pages/Download.tsx' @@ -33,7 +32,6 @@ const routes = [ path: "seminfo", element: } />, children: [ - { path: "building", element: }, { path: "room", element: }, { path: "unit", element: }, ],