2018-01-21 23:09:11 -08:00
|
|
|
import { connect } from 'react-redux';
|
2020-06-15 16:33:03 -04:00
|
|
|
import { selectPhoneNewErrorMessage } from 'redux/selectors/user';
|
|
|
|
import { doUserPhoneNew } from 'redux/actions/user';
|
2018-01-21 23:09:11 -08:00
|
|
|
import UserPhoneNew from './view';
|
|
|
|
|
|
|
|
const select = state => ({
|
|
|
|
phoneErrorMessage: selectPhoneNewErrorMessage(state),
|
|
|
|
});
|
|
|
|
|
|
|
|
const perform = dispatch => ({
|
2018-09-23 23:44:42 -04:00
|
|
|
addUserPhone: (phone, countryCode) => dispatch(doUserPhoneNew(phone, countryCode)),
|
2018-01-21 23:09:11 -08:00
|
|
|
});
|
|
|
|
|
2020-06-15 16:33:03 -04:00
|
|
|
export default connect(select, perform)(UserPhoneNew);
|