lbry-desktop/ui/component/userPhoneNew/index.js
2019-11-11 13:27:29 -05:00

16 lines
416 B
JavaScript

import { connect } from 'react-redux';
import { selectPhoneNewErrorMessage, doUserPhoneNew } from 'lbryinc';
import UserPhoneNew from './view';
const select = state => ({
phoneErrorMessage: selectPhoneNewErrorMessage(state),
});
const perform = dispatch => ({
addUserPhone: (phone, countryCode) => dispatch(doUserPhoneNew(phone, countryCode)),
});
export default connect(
select,
perform
)(UserPhoneNew);