1
0
Fork 0

fixed login link and added login page

This commit is contained in:
Kim, Jimin 2021-09-10 12:19:41 +09:00
parent f282ccf5bc
commit d2524a63ea
3 changed files with 16 additions and 1 deletions

View file

@ -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>
)

View file

@ -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
View file

@ -0,0 +1,11 @@
import { Component } from "react"
export default class Login extends Component {
render() {
return (
<>
<h2>Login</h2>
</>
)
}
}