+
Welcome to the Bubble App!
+
+
Build login form here
+
+
+
+
{error}
+
);
};
-
-export default Login;
-
-//Task List:
-//1. Build a form containing a username and password field.
-//2. Add whatever state nessiary for form functioning.
-//3. MAKE SURE THAT FORM INPUTS INCLUDE THE LABEL TEXT "username" and "password" RESPECTIVELY.
-//4. If either the username or password is not displaied display EXACTLY the following words: Username or Password not valid.
-//5. If the username / password is equal to Lambda School / i<3Lambd4, save that token to localStorage.
\ No newline at end of file
+export default Login;
\ No newline at end of file
diff --git a/src/components/PrivateRoute.js b/src/components/PrivateRoute.js
index d31c451856..7d2961bf3a 100644
--- a/src/components/PrivateRoute.js
+++ b/src/components/PrivateRoute.js
@@ -1,11 +1,14 @@
-
-
-
-
-
-
-
-
-
-//Task List:
-//1. Build a PrivateRoute component that redirects if user is not logged in
\ No newline at end of file
+import React from 'react';
+import { Route, Redirect } from 'react-router-dom';
+
+const PrivateRoute = ({component: Component, ...rest}) => {
+ return