-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
10553: Display initial message for users verifying pending email; Dis…
…play new error message for when the request times out;
- Loading branch information
1 parent
09ef490
commit 0f7d774
Showing
3 changed files
with
33 additions
and
3 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
web-client/src/presenter/actions/setInitialVerifyAlertMessageAction.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export const setInitialVerifyAlertMessageAction = () => { | ||
return { | ||
alertInfo: { | ||
message: 'DAWSON is updating your email. Please wait.', | ||
title: 'Updating email address', | ||
}, | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 5 additions & 2 deletions
7
web-client/src/presenter/sequences/gotoVerifyEmailSequence.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
import { clearUserAction } from '../actions/clearUserAction'; | ||
import { navigateToLoginAction } from '@web-client/presenter/actions/Login/navigateToLoginAction'; | ||
import { setAlertErrorAction } from '@web-client/presenter/actions/setAlertErrorAction'; | ||
import { setAlertInfoAction } from '@web-client/presenter/actions/setAlertInfoAction'; | ||
import { setAlertSuccessAction } from '@web-client/presenter/actions/setAlertSuccessAction'; | ||
import { setInitialVerifyAlertMessageAction } from '@web-client/presenter/actions/setInitialVerifyAlertMessageAction'; | ||
import { verifyUserPendingEmailAction } from '../actions/verifyUserPendingEmailAction'; | ||
|
||
export const gotoVerifyEmailSequence = [ | ||
//set initial message here | ||
setInitialVerifyAlertMessageAction, | ||
setAlertInfoAction, | ||
navigateToLoginAction, | ||
verifyUserPendingEmailAction, | ||
{ | ||
error: [setAlertErrorAction], | ||
success: [setAlertSuccessAction], | ||
}, | ||
clearUserAction, | ||
navigateToLoginAction, | ||
] as unknown as (props: { token: string }) => void; |