import { createStore, combineReducers, applyMiddleware } from 'redux';
import { routerMiddleware, push } from 'react-router-redux'
const middleware = routerMiddleware(browserHistory)
const store = createStore(
reducers,
applyMiddleware(middleware)
)
store.dispatch(push('/foo'))
<Switch>
<Layout exact path="/properties" component={Properties} />
<Layout path="/properties/:id" component={Property} />
</Switch>
const Layout = ({component: Component, ...rest}) => {
return (
<Route {...rest} render={matchProps => (
<div className="container-fluid flex-wrap justify-content-center d-flex layout flex-column" style={{ minHeight: '100vh', background: rest.white ? 'white' : '#eceff1' }}>
<Header />
<div style={{ flex: 1 }}>
<Component {...matchProps} />
</div>
<Footer />
</div>
)} />
)
};
export default Layout;
this.props.initializeForm({
endDate: this.props.data.endDate,
startDate: this.props.data.endDate,
eventSubType: this.props.data.eventSubType,
eventType : this.props.data.eventType,
summary: this.props.data.summary,
uuid: this.props.data.uuid,
headline: this.props.data.headline,
noteType: this.props.data.noteType,
sourceUrl: this.props.data.sourceUrl
});