From de74e9548465087d5ae1df613f0e0a15beccb2b7 Mon Sep 17 00:00:00 2001 From: Giang Vu Date: Sun, 22 Sep 2024 23:29:18 +1000 Subject: [PATCH] docs: update comments / JSDoc --- frontend/src/components/BackButton.tsx | 5 +++ frontend/src/components/DisplayFile.tsx | 7 ++++ frontend/src/components/Footer.tsx | 6 ++++ frontend/src/components/Header.tsx | 4 +++ frontend/src/components/NextButton.tsx | 4 +++ frontend/src/components/ProceedButton.tsx | 9 ++++++ frontend/src/components/Sidebar.tsx | 9 ++++++ frontend/src/components/Spreadsheet.tsx | 10 ++++++ frontend/src/components/UploadButton.tsx | 7 ++++ frontend/src/components/UploadPopUp.tsx | 7 ++++ frontend/src/pages/Download.tsx | 7 ++++ frontend/src/pages/Enrolment.tsx | 8 +++++ frontend/src/pages/SemesterInfo.tsx | 6 ++++ frontend/src/pages/SendData.tsx | 8 +++++ frontend/src/pages/TimetableMod.tsx | 7 ++++ frontend/src/pages/spreadsheets/Building.tsx | 4 +++ frontend/src/pages/spreadsheets/Room.tsx | 4 +++ frontend/src/pages/spreadsheets/Unit.tsx | 4 +++ frontend/src/routes.tsx | 7 +++- frontend/src/scripts/api.ts | 12 ++++++- frontend/src/scripts/handleInput.ts | 32 ++++++++++++++---- frontend/src/scripts/persistence.ts | 34 ++++++++++++++++++-- frontend/src/styles/enrolment.css | 8 ++--- 23 files changed, 194 insertions(+), 15 deletions(-) diff --git a/frontend/src/components/BackButton.tsx b/frontend/src/components/BackButton.tsx index de85c97..b30dedf 100644 --- a/frontend/src/components/BackButton.tsx +++ b/frontend/src/components/BackButton.tsx @@ -1,6 +1,11 @@ import ArrowBackIcon from '@mui/icons-material/ArrowBack'; import { Button } from '@mui/material'; +/** + * React component for a back button with outlined style. + * Displays a button with an arrow icon and text 'Back'. + * @returns JSX element representing the back button + */ export default function BackButton() { return (