-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into bug/5969-Unable-to-display-custom-error-throw…
…n-from-the-changePassword-action
- Loading branch information
Showing
23 changed files
with
125 additions
and
83 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
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
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
107 changes: 53 additions & 54 deletions
107
login-workflow/src/screens/AccountDetailsScreen/types.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,57 +1,56 @@ | ||
import { BoxProps, TextFieldProps } from '@mui/material'; | ||
import { TextFieldProps } from '@mui/material'; | ||
import { WorkflowCardProps } from '../../components/WorkflowCard/WorkflowCard.types'; | ||
import { ErrorManagerProps } from '../../components/Error/types'; | ||
|
||
export type AccountDetailsScreenProps = WorkflowCardProps & | ||
BoxProps & { | ||
/** | ||
* The label for the first name text field | ||
*/ | ||
firstNameLabel?: string; | ||
|
||
/** | ||
* The initial value for the first name text field | ||
*/ | ||
initialFirstName?: string; | ||
|
||
/** | ||
* The function that validates the first name text field | ||
* @param {string} firstName - validates first name input length | ||
* @returns boolean | string | ||
*/ | ||
firstNameValidator?: (firstName: string) => boolean | string; | ||
|
||
/** | ||
* The props to pass to the first name field. | ||
* See [MUI's TextFieldProps API](https://mui.com/material-ui/api/text-field/) for more details. | ||
*/ | ||
firstNameTextFieldProps?: TextFieldProps; | ||
|
||
/** | ||
* The label for the last name text field | ||
*/ | ||
lastNameLabel?: string; | ||
|
||
/** | ||
* The initial value for the last name text field | ||
*/ | ||
initialLastName?: string; | ||
|
||
/** | ||
* The function that validates the last name text field | ||
* @param {string} lastName - validates last name input length | ||
* @returns boolean | string | ||
*/ | ||
lastNameValidator?: (lastName: string) => boolean | string; | ||
|
||
/** | ||
* The props to pass to the last name field. | ||
* See [MUI's TextFieldProps API](https://mui.com/material-ui/api/text-field/) for more details. | ||
*/ | ||
lastNameTextFieldProps?: TextFieldProps; | ||
|
||
/** | ||
* The configuration for customizing how errors are displayed | ||
*/ | ||
errorDisplayConfig?: ErrorManagerProps; | ||
}; | ||
export type AccountDetailsScreenProps = WorkflowCardProps & { | ||
/** | ||
* The label for the first name text field | ||
*/ | ||
firstNameLabel?: string; | ||
|
||
/** | ||
* The initial value for the first name text field | ||
*/ | ||
initialFirstName?: string; | ||
|
||
/** | ||
* The function that validates the first name text field | ||
* @param {string} firstName - validates first name input length | ||
* @returns boolean | string | ||
*/ | ||
firstNameValidator?: (firstName: string) => boolean | string; | ||
|
||
/** | ||
* The props to pass to the first name field. | ||
* See [MUI's TextFieldProps API](https://mui.com/material-ui/api/text-field/) for more details. | ||
*/ | ||
firstNameTextFieldProps?: TextFieldProps; | ||
|
||
/** | ||
* The label for the last name text field | ||
*/ | ||
lastNameLabel?: string; | ||
|
||
/** | ||
* The initial value for the last name text field | ||
*/ | ||
initialLastName?: string; | ||
|
||
/** | ||
* The function that validates the last name text field | ||
* @param {string} lastName - validates last name input length | ||
* @returns boolean | string | ||
*/ | ||
lastNameValidator?: (lastName: string) => boolean | string; | ||
|
||
/** | ||
* The props to pass to the last name field. | ||
* See [MUI's TextFieldProps API](https://mui.com/material-ui/api/text-field/) for more details. | ||
*/ | ||
lastNameTextFieldProps?: TextFieldProps; | ||
|
||
/** | ||
* The configuration for customizing how errors are displayed | ||
*/ | ||
errorDisplayConfig?: ErrorManagerProps; | ||
}; |
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
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
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
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
Oops, something went wrong.