focalboard/webapp/src/app.tsx

44 lines
684 B
TypeScript
Raw Normal View History

2020-10-14 20:19:14 +02:00
import React from "react"
import {
2020-10-14 20:19:14 +02:00
BrowserRouter as Router,
Switch,
Route,
Link
} from "react-router-dom"
2020-10-14 20:19:14 +02:00
import LoginPage from './pages/loginPage'
import BoardPage from './pages/boardPage'
export default function App() {
2020-10-14 20:19:14 +02:00
return (
<Router>
<div id="frame">
<div className="page-header">
<a href="/">OCTO</a>
</div>
2020-10-14 20:19:14 +02:00
<div id="main">
<Switch>
<Route path="/login">
<LoginPage />
</Route>
<Route path="/">
<BoardPage />
</Route>
2020-10-14 20:19:14 +02:00
<Route path="/board">
<BoardPage />
</Route>
</Switch>
</div>
2020-10-14 20:19:14 +02:00
<div id="overlay">
</div>
2020-10-15 02:35:15 +02:00
<div id="modal">
</div>
2020-10-14 20:19:14 +02:00
</div>
</Router>
)
}