lbry-desktop/ui/component/userPhoneNew/index.js

17 lines
416 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
2018-09-24 05:44:42 +02:00
import { selectPhoneNewErrorMessage, doUserPhoneNew } from 'lbryinc';
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-09-24 05:44:42 +02:00
export default connect(
select,
perform
)(UserPhoneNew);