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:
Add a directory to components called views
add the following jsx files to views: application views & authorized
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
Use honey Rae for authorized.jsx bc we havent learned this yet
Create a directory called "auth" under components
create login.css, login.jsx, and register.jsx files using logic from honey rae
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: