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