Use react-alert for backend message flashing (#3315)

This commit is contained in:
Maxime Beauchemin
2017-08-16 23:00:23 -07:00
committed by GitHub
parent b9a2fa4015
commit 59268e978a
8 changed files with 46 additions and 10 deletions

View File

@@ -56,12 +56,11 @@ const initState = {
const store = createStore(rootReducer, initState,
compose(applyMiddleware(thunk), initEnhancer(false)),
);
ReactDOM.render(
<Provider store={store}>
<div>
<ExploreViewContainer />
<AlertsWrapper />
<AlertsWrapper initMessages={bootstrappedState.common.flash_messages} />
</div>
</Provider>,
exploreViewContainer,