@brightlayer-ui/react-native-auth-workflow
Version:
Re-usable workflow components for Authentication and Registration within Eaton applications.
40 lines (39 loc) • 1.26 kB
TypeScript
import { ErrorManagerProps } from '../../components/Error';
import { SetPasswordProps } from '../../components/SetPassword/types';
import { WorkflowCardProps } from '../../components/WorkflowCard/WorkflowCard.types';
import { SuccessScreenProps } from '../SuccessScreen';
export type ResetPasswordScreenProps = Omit<WorkflowCardProps, 'currentStep | totalSteps'> & {
/**
* Pass code and email for Reset Password action calls
*/
accountParams?: {
/**
* verification code for Resetting pasword
*/
code: string;
/**
* email address of respective account
*/
email?: string;
};
/**
* The props that will be passed to the SetPassword component
*/
PasswordProps?: SetPasswordProps;
/**
* Boolean that determines whether to show the success screen or not
*/
showSuccessScreen?: boolean;
/**
* used to pass Success Screen component
*/
SuccessScreen?: (props: SuccessScreenProps) => JSX.Element;
/**
* props applied to Success Screen
*/
SuccessScreenProps?: SuccessScreenProps;
/**
* The configuration for customizing how errors are displayed
*/
errorDisplayConfig?: ErrorManagerProps;
};