provides recheck button at verification screen
This commit is contained in:
parent
00262eeb92
commit
194464bd71
3 changed files with 6 additions and 2 deletions
|
@ -3,6 +3,7 @@ import { connect } from 'react-redux';
|
|||
import { doOpenModal } from 'redux/actions/app';
|
||||
import {
|
||||
doUserIdentityVerify,
|
||||
doUserFetch,
|
||||
rewards,
|
||||
makeSelectRewardByType,
|
||||
selectIdentityVerifyIsPending,
|
||||
|
@ -23,6 +24,7 @@ const select = state => {
|
|||
const perform = dispatch => ({
|
||||
verifyUserIdentity: token => dispatch(doUserIdentityVerify(token)),
|
||||
verifyPhone: () => dispatch(doOpenModal(MODALS.PHONE_COLLECTION)),
|
||||
fetchUser: () => dispatch(doUserFetch()),
|
||||
});
|
||||
|
||||
export default connect(
|
||||
|
|
|
@ -11,6 +11,7 @@ type Props = {
|
|||
isPending: boolean,
|
||||
verifyUserIdentity: string => void,
|
||||
verifyPhone: () => void,
|
||||
fetchUser: () => void,
|
||||
};
|
||||
|
||||
class UserVerify extends React.PureComponent<Props> {
|
||||
|
@ -25,7 +26,7 @@ class UserVerify extends React.PureComponent<Props> {
|
|||
}
|
||||
|
||||
render() {
|
||||
const { errorMessage, isPending, verifyPhone } = this.props;
|
||||
const { errorMessage, isPending, verifyPhone, fetchUser } = this.props;
|
||||
return (
|
||||
<React.Fragment>
|
||||
<section className="section__header">
|
||||
|
@ -34,6 +35,7 @@ class UserVerify extends React.PureComponent<Props> {
|
|||
{__(
|
||||
"We weren't able to auto-approve you for rewards. Please complete one of the steps below to unlock them."
|
||||
)}{' '}
|
||||
<Button onClick={() => fetchUser()} button="link" label={__('Refresh')} /> {'or'}{' '}
|
||||
<Button navigate="/" button="link" label={__('Skip')} />
|
||||
</p>
|
||||
</section>
|
||||
|
|
Loading…
Reference in a new issue