adding in some files for the authentication flow and cleaning things u

This commit is contained in:
talksik
2022-03-16 10:56:06 -04:00
parent 0ad5429b53
commit fb35e2835e
24 changed files with 103 additions and 2968 deletions
+10 -2
View File
@@ -11,6 +11,7 @@ import {
import Home from "./pages/Home";
import Login from "./pages/Login";
import ProtectedRoute from "./components/ProtectedRoute";
import testConnection from "@nirvana/core";
testConnection();
@@ -25,8 +26,15 @@ function App() {
<HashRouter>
<div className="App">
<Routes>
<Route path="/" element={<Login />} />
<Route path="/home" element={<Home />} />
<Route path="/login" element={<Login />} />
<Route
path="/home"
element={
<ProtectedRoute>
<Home />
</ProtectedRoute>
}
/>
{/* <Route exact path="/profile/create" component={Sit} />
<Route exact path="/profile/edit" component={Sit} /> */}
</Routes>