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

26 lines
612 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
import {
2018-09-24 05:44:42 +02:00
doUserPhoneVerify,
doUserPhoneReset,
selectPhoneToVerify,
selectPhoneVerifyErrorMessage,
selectUserCountryCode,
2018-09-24 05:44:42 +02:00
} from 'lbryinc';
import UserPhoneVerify from './view';
const select = state => ({
phone: selectPhoneToVerify(state),
countryCode: selectUserCountryCode(state),
phoneErrorMessage: selectPhoneVerifyErrorMessage(state),
});
const perform = dispatch => ({
resetPhone: () => dispatch(doUserPhoneReset()),
verifyUserPhone: code => dispatch(doUserPhoneVerify(code)),
});
2018-09-24 05:44:42 +02:00
export default connect(
select,
perform
)(UserPhoneVerify);