-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
54 lines (51 loc) · 2.14 KB
/
index.js
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
48
49
50
51
52
53
54
import React from "react";
import ReactDOM from "react-dom";
import { Route } from "react-router-dom";
import { Provider } from "react-redux";
import { ConnectedRouter } from "react-router-redux";
import store, { history } from "./store/configureStore";
import MuiThemeProvider from "material-ui/styles/MuiThemeProvider";
import { ThemeProvider } from "react-jss";
import getMuiTheme from "material-ui/styles/getMuiTheme";
import cyverseTheme from "./cyverse-ui/styles/cyverseTheme";
import "./index.css";
import App from "./App";
import CreateInstanceWizard from "./components/wizards/CreateInstanceWizard";
import CreateVolumeDialog from "./containers/CreateVolumeDialog";
import CreateProjectDialog from "./containers/CreateProjectDialog";
import CreateLinkDialog from "./containers/CreateLinkDialog";
import registerServiceWorker from "./registerServiceWorker";
import injectTapEventPlugin from "react-tap-event-plugin";
import AddImageToProjectDialog from "./containers/AddImageToProjectDialog";
import MoveToProjectDialog from "./containers/MoveToProjectDialog";
import AttachToInstanceDialog from "./containers/AttachToInstanceDialog";
import DetachFromInstanceDialog from "./containers/DetachFromInstanceDialog";
import AttachFromInstanceDiolog from "./containers/AttachFromInstanceDialog";
import NotificationSnackbar from "./containers/NotificationSnackbar";
injectTapEventPlugin();
const appTheme = getMuiTheme(cyverseTheme);
ReactDOM.render(
<Provider store={store}>
<ConnectedRouter history={history}>
<MuiThemeProvider muiTheme={appTheme}>
<ThemeProvider theme={appTheme}>
<div>
<App />
<CreateInstanceWizard />
<CreateVolumeDialog />
<CreateProjectDialog />
<CreateLinkDialog />
<AddImageToProjectDialog />
<MoveToProjectDialog />
<AttachToInstanceDialog />
<AttachFromInstanceDiolog />
<DetachFromInstanceDialog />
<NotificationSnackbar />
</div>
</ThemeProvider>
</MuiThemeProvider>
</ConnectedRouter>
</Provider>,
document.getElementById("root")
);
registerServiceWorker();