Add identity verification to app #366
3 changed files with 2 additions and 6 deletions
|
@ -39,7 +39,7 @@ export function doAuthNavigate(pathAfterAuth = null, params = {}) {
|
||||||
dispatch({
|
dispatch({
|
||||||
type: types.CHANGE_AFTER_AUTH_PATH,
|
type: types.CHANGE_AFTER_AUTH_PATH,
|
||||||
data: {
|
data: {
|
||||||
path: `${pathAfterAuth}?${queryStringFromParams(params)}`,
|
path: `${pathAfterAuth}?${toQueryString(params)}`,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -248,8 +248,6 @@ export function doCheckDaemonVersion() {
|
||||||
export function doAlertError(errorList) {
|
export function doAlertError(errorList) {
|
||||||
return function(dispatch, getState) {
|
return function(dispatch, getState) {
|
||||||
const state = getState();
|
const state = getState();
|
||||||
console.log("do alert error");
|
|
||||||
console.log(errorList);
|
|
||||||
dispatch({
|
dispatch({
|
||||||
type: types.OPEN_MODAL,
|
type: types.OPEN_MODAL,
|
||||||
data: {
|
data: {
|
||||||
|
|
|
@ -48,7 +48,7 @@ class App extends React.PureComponent {
|
||||||
if (
|
if (
|
||||||
!isWelcomeAcknowledged &&
|
!isWelcomeAcknowledged &&
|
||||||
user &&
|
user &&
|
||||||
(!isFetchingRewards || !isWelcomeRewardClaimed)
|
(isFetchingRewards === false && isWelcomeRewardClaimed === false)
|
||||||
) {
|
) {
|
||||||
openWelcomeModal();
|
openWelcomeModal();
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,8 +24,6 @@ class UserEmailVerify extends React.PureComponent {
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { errorMessage, isPending } = this.props;
|
const { errorMessage, isPending } = this.props;
|
||||||
console.log("user email verify render");
|
|
||||||
console.log(this.props);
|
|
||||||
return (
|
return (
|
||||||
<form
|
<form
|
||||||
onSubmit={event => {
|
onSubmit={event => {
|
||||||
|
|
Loading…
Reference in a new issue