fixed login link and added login page
This commit is contained in:
parent
f282ccf5bc
commit
d2524a63ea
3 changed files with 16 additions and 1 deletions
|
@ -70,7 +70,7 @@ const Navbar = () => {
|
|||
<FontAwesomeIcon icon={faExternalLinkAlt} />
|
||||
</a>
|
||||
<div className="right">
|
||||
<Link to={`${process.env.PUBLIC_URL}/login`}>Login</Link>
|
||||
<Link to="/login">Login</Link>
|
||||
</div>
|
||||
</StyledHeader>
|
||||
)
|
||||
|
|
|
@ -14,6 +14,7 @@ import Dashboard from "./routes/Dashboard"
|
|||
import Modules from "./routes/Modules"
|
||||
import Logs from "./routes/Logs"
|
||||
import Incidents from "./routes/Incidents"
|
||||
import Login from "./routes/Login"
|
||||
|
||||
import { SidebarCollapsedContext } from "./contexts"
|
||||
|
||||
|
@ -64,6 +65,9 @@ const App = () => {
|
|||
<Route exact path="/incidents">
|
||||
<Incidents />
|
||||
</Route>
|
||||
<Route exact path="/login">
|
||||
<Login />
|
||||
</Route>
|
||||
</Switch>
|
||||
</div>
|
||||
</Layout.Content>
|
||||
|
|
11
src/routes/Login.tsx
Normal file
11
src/routes/Login.tsx
Normal file
|
@ -0,0 +1,11 @@
|
|||
import { Component } from "react"
|
||||
|
||||
export default class Login extends Component {
|
||||
render() {
|
||||
return (
|
||||
<>
|
||||
<h2>Login</h2>
|
||||
</>
|
||||
)
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue