-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathindex.js
More file actions
47 lines (37 loc) · 1.41 KB
/
index.js
File metadata and controls
47 lines (37 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from "react-redux";
import { Router, Route} from 'react-router-dom';
import PrivateRoute from './PrivateRoute';
import history from './history'
import App from './App';
import Login from './screens/Login';
import Logout from './screens/Logout';
import Main from './screens/Main';
import Settings from './screens/Settings';
import About from './screens/About';
import Room from './screens/Room';
import './index.css';
import registerServiceWorker from './registerServiceWorker';
import configureStore from "./store/configureStore";
import 'react-select/dist/react-select.css';
import 'react-datetime/css/react-datetime.css';
const store = configureStore({});
window.store = store;
ReactDOM.render(
<Provider store={store}>
<Router history={history}>
<div>
<App>
<Route path="/login" component={Login} />
<Route path="/logout" component={Logout} />
<PrivateRoute path="/" exact={true} component={Main} />
<PrivateRoute path="/settings" exact={true} component={Settings} />
<PrivateRoute path="/about" exact={true} component={About} />
<PrivateRoute path="/room/:jid" component={Room} />
</App>
</div>
</Router>
</Provider>
, document.getElementById('root'));
registerServiceWorker();