2020-10-20 21:50:53 +02:00
|
|
|
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
|
|
// See LICENSE.txt for license information.
|
2020-10-20 21:52:56 +02:00
|
|
|
import React from 'react'
|
2020-10-09 17:10:26 +02:00
|
|
|
|
|
|
|
import {
|
2020-10-20 21:50:53 +02:00
|
|
|
BrowserRouter as Router,
|
|
|
|
Switch,
|
|
|
|
Route,
|
|
|
|
Link,
|
2020-10-20 21:52:56 +02:00
|
|
|
} from 'react-router-dom'
|
2020-10-09 17:10:26 +02:00
|
|
|
|
2020-10-20 21:52:56 +02:00
|
|
|
import LoginPage from './pages/loginPage'
|
|
|
|
import BoardPage from './pages/boardPage'
|
2020-10-09 17:10:26 +02:00
|
|
|
|
2020-10-22 18:34:10 +02:00
|
|
|
export default function App(): JSX.Element {
|
2020-10-20 21:50:53 +02:00
|
|
|
return (
|
|
|
|
<Router>
|
|
|
|
<div id='frame'>
|
|
|
|
<div id='main'>
|
|
|
|
<Switch>
|
|
|
|
<Route path='/login'>
|
|
|
|
<LoginPage/>
|
|
|
|
</Route>
|
|
|
|
<Route path='/'>
|
|
|
|
<BoardPage/>
|
|
|
|
</Route>
|
|
|
|
<Route path='/board'>
|
|
|
|
<BoardPage/>
|
|
|
|
</Route>
|
|
|
|
</Switch>
|
|
|
|
</div>
|
2020-10-09 17:10:26 +02:00
|
|
|
|
2020-10-20 21:50:53 +02:00
|
|
|
<div id='overlay'/>
|
2020-10-15 02:35:15 +02:00
|
|
|
|
2020-10-20 21:50:53 +02:00
|
|
|
<div id='modal'/>
|
|
|
|
</div>
|
|
|
|
</Router>
|
|
|
|
)
|
2020-10-09 17:10:26 +02:00
|
|
|
}
|