Re-adding Create Account Components#5
Re-adding Create Account Components#5DarrylBrooks97 wants to merge 6 commits intoBLACC-Smith:mainfrom
Conversation
gt-codes
left a comment
There was a problem hiding this comment.
MAIN CHANGE
There'll be one component called Authenticate at the route /authenticate. You can rename the login component and route to authenticate. In this component, there'll be a ternary that shows either login or signup input fields. We don't need to have separate routes and extra code for something this simple
| createUser(props.email, props.password, setError); | ||
| }, [props.email, props.password, clicked]); |
There was a problem hiding this comment.
Destructure the props variable to what you need
| <Login /> | ||
| </Route> | ||
| <PrivateRoute loggedIn={user} path="/"> | ||
| <Route path='/newaccount'> |
| @@ -0,0 +1,87 @@ | |||
| import React, { useState } from 'react'; | |||
There was a problem hiding this comment.
FOR THIS ENTIRE FILE
There'll be one component called Authenticate at the route /authenticate. You can rename the login component and route to authenticate. In this component, there'll be a ternary that shows either login or signup input fields. We don't need to have separate routes and extra code for something this simple
No description provided.