38 lines
855 B
JavaScript
38 lines
855 B
JavaScript
import React from 'react';
|
|
import 'rsuite/lib/styles/index.less';
|
|
import { BrowserRouter as Router, Switch, Route } from 'react-router-dom';
|
|
|
|
import Dashboard from './Dashboard';
|
|
import Schedule from './Schedule/Schedule';
|
|
import Login from './Login';
|
|
import Register from './Register';
|
|
|
|
const titles = {
|
|
schedule: 'Schedule a meeting',
|
|
dashboard: 'Dashboard',
|
|
login: 'Login',
|
|
register: 'Registration',
|
|
settings: 'Settings'
|
|
};
|
|
|
|
export default function App() {
|
|
return (
|
|
<Router>
|
|
<Switch>
|
|
<Route path='/' exact>
|
|
<Schedule title={titles.schedule} />
|
|
</Route>
|
|
<Route path='/dashboard'>
|
|
<Dashboard title={titles.dashboard}/>
|
|
</Route>
|
|
<Route path='/login'>
|
|
<Login title={titles.login}/>
|
|
</Route>
|
|
<Route path='/register'>
|
|
<Register title={titles.register} />
|
|
</Route>
|
|
</Switch>
|
|
</Router>
|
|
);
|
|
}
|