You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
580 B
24 lines
580 B
4 years ago
|
import { connect } from 'react-redux';
|
||
|
import { hideModal } from '../../../../store/actions';
|
||
|
import { getSelectedIdentity } from '../../../../selectors';
|
||
|
import AccountModalContainer from './account-modal-container.component';
|
||
5 years ago
|
|
||
4 years ago
|
function mapStateToProps(state, ownProps) {
|
||
5 years ago
|
return {
|
||
|
selectedIdentity: ownProps.selectedIdentity || getSelectedIdentity(state),
|
||
4 years ago
|
};
|
||
5 years ago
|
}
|
||
|
|
||
4 years ago
|
function mapDispatchToProps(dispatch) {
|
||
5 years ago
|
return {
|
||
|
hideModal: () => {
|
||
4 years ago
|
dispatch(hideModal());
|
||
5 years ago
|
},
|
||
4 years ago
|
};
|
||
5 years ago
|
}
|
||
|
|
||
4 years ago
|
export default connect(
|
||
|
mapStateToProps,
|
||
|
mapDispatchToProps,
|
||
4 years ago
|
)(AccountModalContainer);
|