Alert.container.js
1 import { connect } from 'react-redux' 2 import Alert from './Alert' 3 import { hideAlertAction } from './Alert.reducer' 4 import { hideAction } from '../TransactionStatus/TransactionStatus.reducer' 5 6 const mapStateToProps = state => state.alert 7 const mapDispatchToProps = dispatch => ({ 8 hideAlert: () => dispatch(hideAlertAction()), 9 hideTransaction: () => dispatch(hideAction()), 10 }) 11 12 export default connect( 13 mapStateToProps, 14 mapDispatchToProps, 15 )(Alert)