From 7fa131cb1b45ccc8322456e7bf274834b93ca9ea Mon Sep 17 00:00:00 2001 From: WelldoneM Date: Tue, 15 Oct 2024 21:12:05 -0500 Subject: [PATCH] feat(time-preferences): add time grid for users to select study time (#6) 1. Add a button to ProfilePage to jump to time-preferences page. 2. Add a whole time-preference page for time preference selection. --------- Co-authored-by: ZL Asica <40444637+ZL-Asica@users.noreply.github.com> --- src/App.jsx | 2 + src/components/Profile/ProfilePage.jsx | 24 ++- .../Profile/TimePreferencesGrid.jsx | 160 ++++++++++++++++++ .../Profile/TimePreferencesPage.jsx | 29 ++++ 4 files changed, 211 insertions(+), 4 deletions(-) create mode 100644 src/components/Profile/TimePreferencesGrid.jsx create mode 100644 src/components/Profile/TimePreferencesPage.jsx diff --git a/src/App.jsx b/src/App.jsx index de4bdfb..75b20e9 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -6,6 +6,7 @@ import GroupsPage from '@components/GroupsPage'; import HomePage from '@components/HomePage'; import EditProfile from '@components/Profile/EditProfile'; import ProfilePage from '@components/Profile/ProfilePage'; +import TimePreferencesPage from '@components/Profile/TimePreferencesPage'; import { ThemeProvider } from '@mui/material/styles'; import { theme } from '@utils/theme'; import { BrowserRouter, Routes, Route, useLocation } from 'react-router-dom'; @@ -25,6 +26,7 @@ const AppContent = ({ currentPage, setCurrentPage }) => { {/* TBD} /> */} } /> } /> + } /> {!isEditProfilePage &&