From 7160c6159464a3c8baec92b0f90c3571612d3116 Mon Sep 17 00:00:00 2001 From: Ethan Ho Date: Mon, 15 Jan 2024 17:59:08 -0800 Subject: [PATCH 1/5] Completed Sprint task -- renamed all "Register" items to "SignUp" Co-authored-by: cherhchen --- src/App.jsx | 29 +++++++++++++++++-- .../{register.jsx => SignUp.jsx} | 8 ++--- src/pages/Catalog/Catalog.jsx | 9 ++++++ src/pages/Playground/Playground.jsx | 9 ++++++ .../PublishedSchedule/PublishedSchedule.jsx | 11 +++++++ 5 files changed, 59 insertions(+), 7 deletions(-) rename src/components/Authentication/{register.jsx => SignUp.jsx} (94%) create mode 100644 src/pages/Catalog/Catalog.jsx create mode 100644 src/pages/Playground/Playground.jsx create mode 100644 src/pages/PublishedSchedule/PublishedSchedule.jsx diff --git a/src/App.jsx b/src/App.jsx index 06ece1d..73d6fd8 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -5,12 +5,15 @@ import { Route, Routes, BrowserRouter as Router } from 'react-router-dom'; import { CookiesProvider } from 'react-cookie'; import Login from './components/Authentication/Login'; import Logout from './components/Authentication/Logout'; -import Register from './components/Authentication/register'; +import SignUp from './components/Authentication/SignUp'; import Dashboard from './pages/Dashboard/Dashboard'; import ForgotPassword from './components/Authentication/ForgotPassword'; import EmailAction from './components/Authentication/EmailAction'; import AUTH_ROLES from './utils/auth_config'; import ProtectedRoute from './utils/ProtectedRoute'; +import Catalog from './pages/Catalog/Catalog'; +import PublishedSchedule from './pages/PublishedSchedule/PublishedSchedule'; +import Playground from './pages/Playground/Playground'; const { ADMIN_ROLE, USER_ROLE } = AUTH_ROLES.AUTH_ROLES; @@ -21,10 +24,10 @@ const App = () => { - } /> + } /> } /> } /> - } /> + } /> } /> { /> } /> + + } + /> + + } + /> + }/> diff --git a/src/components/Authentication/register.jsx b/src/components/Authentication/SignUp.jsx similarity index 94% rename from src/components/Authentication/register.jsx rename to src/components/Authentication/SignUp.jsx index a6f336e..34f109d 100644 --- a/src/components/Authentication/register.jsx +++ b/src/components/Authentication/SignUp.jsx @@ -2,7 +2,7 @@ import { useState } from 'react'; import { useNavigate } from 'react-router-dom'; import { registerWithEmailAndPassword } from '../../utils/auth_utils'; -const Register = () => { +const SignUp = () => { const [email, setEmail] = useState(); const [password, setPassword] = useState(); const [checkPassword, setCheckPassword] = useState(); @@ -39,7 +39,7 @@ const Register = () => { return (
-

Register

+

Sign Up

setEmail(target.value)} placeholder="Email" />
@@ -57,7 +57,7 @@ const Register = () => { type="password" />
- + {/*