-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
fix(settings): Use single input code component in ConfirmResetPassword
- Loading branch information
Showing
20 changed files
with
225 additions
and
647 deletions.
There are no files selected for viewing
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
14 changes: 14 additions & 0 deletions
14
packages/fxa-settings/src/components/FormVerifyTotp/en.ftl
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,14 @@ | ||
## FormVerifyTotp component | ||
## Form to enter a time-based one-time-passcode (e.g., 6-digit numeric code or 8-digit alphanumeric code) | ||
|
||
# Information explaining why button is disabled, also read to screen readers | ||
# Submit button is disabled unless a valid code format is entered | ||
# Used when the code may only contain numbers | ||
# $codeLength : number of digits in a valid code | ||
form-verify-totp-disabled-button-title-numeric = Enter { $codeLength }-digit code to continue | ||
# Information explaining why button is disabled, also read to screen readers | ||
# Submit button is disabled unless a valid code format is entered | ||
# Used when the code may contain numbers and/or letters | ||
# $codeLength : number of characters in a valid code | ||
form-verify-totp-disabled-button-title-alphanumeric = Enter {$ codeLength }-character code to continue bloop |
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
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
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
18 changes: 18 additions & 0 deletions
18
packages/fxa-settings/src/components/FormVerifyTotp/interfaces.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,18 @@ | ||
/* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | ||
|
||
export type FormVerifyTotpProps = { | ||
clearBanners?: () => void; | ||
codeLength: 6 | 8 | 10; | ||
codeType: 'numeric' | 'alphanumeric'; | ||
errorMessage: string; | ||
localizedInputLabel: string; | ||
localizedSubmitButtonText: string; | ||
setErrorMessage: React.Dispatch<React.SetStateAction<string>>; | ||
verifyCode: (code: string) => void; | ||
}; | ||
|
||
export type VerifyTotpFormData = { | ||
code: string; | ||
}; |
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
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
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
packages/fxa-settings/src/components/TotpInputGroup/index.stories.tsx
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.