day-cohort-70 / shepherds-pie-stormy-monday

shepherds-pie-stormy-monday created by GitHub Classroom
0 stars 0 forks source link

Create Routes in App.jsx & components for login and register #1

Open lsand18 opened 5 months ago

lsand18 commented 5 months ago

Create Routes in app.jsx with login and register paths. Create <Route path="*" to check if user is authorized and add Application Views as a child component of the authorized component.

Refer to Honey Rae Repairs for an example

Create the necessary files:

  1. Add a directory to components called views
  2. add the following jsx files to views: application views & authorized
  3. in applicaiton views, capture the current user from localstorage and return the view of the user (Admin or employee) based on the admin property. You may have to comment out the actual components until they are created
  4. Use honey Rae for authorized.jsx bc we havent learned this yet
  5. Create a directory called "auth" under components
  6. create login.css, login.jsx, and register.jsx files using logic from honey rae
  7. create userService.jsx