-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
30 lines (23 loc) · 1009 Bytes
/
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
import 'babel-polyfill';
import React from 'react';
import ReactDOM from 'react-dom';
import AppContainer from './containers/AppContainer';
import { Provider } from 'react-redux';
import configureStore from './store/configure-store';
import 'bootstrap/dist/css/bootstrap.css';
import { loadBasicContent } from './actions/content-actions';
import { getLatestEventDetails } from './actions/event-details';
import { getYouthTrainingDetails } from './actions/youth-training-event-details'
import { getRoadshowNorthDetails } from './actions/roadshow-north-event-details'
import { getRoadshowSouthDetails } from './actions/roadshow-south-event-details'
const store = configureStore();
store.dispatch(getLatestEventDetails());
store.dispatch(getYouthTrainingDetails());
store.dispatch(getRoadshowNorthDetails());
store.dispatch(getRoadshowSouthDetails());
store.dispatch(loadBasicContent());
ReactDOM.render(
<Provider store={store}>
<AppContainer />
</Provider>
, document.getElementById('root'));