From 02a9501fa37fe0047ee923468900f046dbe7d2f0 Mon Sep 17 00:00:00 2001 From: priyankakmEaton Date: Fri, 12 Apr 2024 19:06:18 +0530 Subject: [PATCH] passing emptyStateProps --- .../src/components/ForgotPasswordScreenBaseExample.tsx | 2 +- .../src/components/ResetPasswordScreenBaseExample.tsx | 2 +- .../screens/ChangePasswordScreen/ChangePasswordScreen.tsx | 2 +- .../ExistingAccountSuccessScreen.tsx | 6 +++--- .../RegistrationSuccessScreen/RegistrationSuccessScreen.tsx | 6 +++--- .../src/screens/SuccessScreen/SuccessScreenBase.tsx | 4 ++-- login-workflow/src/screens/SuccessScreen/types.ts | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/login-workflow/example/src/components/ForgotPasswordScreenBaseExample.tsx b/login-workflow/example/src/components/ForgotPasswordScreenBaseExample.tsx index 2b58ddd1..275eab64 100644 --- a/login-workflow/example/src/components/ForgotPasswordScreenBaseExample.tsx +++ b/login-workflow/example/src/components/ForgotPasswordScreenBaseExample.tsx @@ -52,7 +52,7 @@ export const ForgotPasswordScreenBaseExample: React.FC = () => { totalSteps: 0, }} SuccessScreenProps={{ - emptyStateProps: { + EmptyStateProps: { icon: { name: 'check-circle' }, title: t('bluiCommon:MESSAGES.EMAIL_SENT'), description: ( diff --git a/login-workflow/example/src/components/ResetPasswordScreenBaseExample.tsx b/login-workflow/example/src/components/ResetPasswordScreenBaseExample.tsx index e7c521a5..f884e77e 100644 --- a/login-workflow/example/src/components/ResetPasswordScreenBaseExample.tsx +++ b/login-workflow/example/src/components/ResetPasswordScreenBaseExample.tsx @@ -125,7 +125,7 @@ export const ResetPasswordScreenBaseExample: React.FC = () => { }, }} SuccessScreenProps={{ - emptyStateProps: { + EmptyStateProps: { icon: { name: 'check-circle' }, title: t('bluiAuth:PASSWORD_RESET.SUCCESS_MESSAGE'), description: t('bluiAuth:CHANGE_PASSWORD.SUCCESS_MESSAGE'), diff --git a/login-workflow/src/screens/ChangePasswordScreen/ChangePasswordScreen.tsx b/login-workflow/src/screens/ChangePasswordScreen/ChangePasswordScreen.tsx index 2832912c..2a87536a 100644 --- a/login-workflow/src/screens/ChangePasswordScreen/ChangePasswordScreen.tsx +++ b/login-workflow/src/screens/ChangePasswordScreen/ChangePasswordScreen.tsx @@ -167,7 +167,7 @@ export const ChangePasswordScreen: React.FC = (props) slots={slots} slotProps={{ SuccessScreen: { - emptyStateProps: { + EmptyStateProps: { icon: { family: 'material', name: 'check-circle' }, title: t('bluiAuth:PASSWORD_RESET.SUCCESS_MESSAGE'), description: t('bluiAuth:CHANGE_PASSWORD.SUCCESS_MESSAGE'), diff --git a/login-workflow/src/screens/ExistingAccountSuccessScreen/ExistingAccountSuccessScreen.tsx b/login-workflow/src/screens/ExistingAccountSuccessScreen/ExistingAccountSuccessScreen.tsx index 898e9c8d..76c0b76f 100644 --- a/login-workflow/src/screens/ExistingAccountSuccessScreen/ExistingAccountSuccessScreen.tsx +++ b/login-workflow/src/screens/ExistingAccountSuccessScreen/ExistingAccountSuccessScreen.tsx @@ -20,7 +20,7 @@ export const ExistingAccountSuccessScreen: React.FC = (props WorkflowCardHeaderProps, WorkflowCardActionsProps, WorkflowCardBodyProps, - emptyStateProps, + EmptyStateProps, ...otherExistingAccountSuccessScreenProps } = props; @@ -56,7 +56,7 @@ export const ExistingAccountSuccessScreen: React.FC = (props icon: icon, title: t('bluiCommon:MESSAGES.WELCOME'), description: t('bluiRegistration:REGISTRATION.SUCCESS_EXISTING'), - ...emptyStateProps, + ...EmptyStateProps, }; return ( @@ -64,7 +64,7 @@ export const ExistingAccountSuccessScreen: React.FC = (props WorkflowCardHeaderProps={workflowCardHeaderProps} WorkflowCardActionsProps={workflowCardActionsProps} WorkflowCardBodyProps={workflowCardBodyProps} - emptyStateProps={emptyStatesProps} + EmptyStateProps={emptyStatesProps} {...otherExistingAccountSuccessScreenProps} /> ); diff --git a/login-workflow/src/screens/RegistrationSuccessScreen/RegistrationSuccessScreen.tsx b/login-workflow/src/screens/RegistrationSuccessScreen/RegistrationSuccessScreen.tsx index aeabf612..7379750b 100644 --- a/login-workflow/src/screens/RegistrationSuccessScreen/RegistrationSuccessScreen.tsx +++ b/login-workflow/src/screens/RegistrationSuccessScreen/RegistrationSuccessScreen.tsx @@ -48,7 +48,7 @@ export const RegistrationSuccessScreen: React.FC = (props) = WorkflowCardHeaderProps, WorkflowCardActionsProps, WorkflowCardBodyProps, - emptyStateProps, + EmptyStateProps, ...otherRegistrationSuccessScreenProps } = props; @@ -81,7 +81,7 @@ export const RegistrationSuccessScreen: React.FC = (props) = ), - ...emptyStateProps, + ...EmptyStateProps, }; const workflowCardBodyProps = { @@ -107,7 +107,7 @@ export const RegistrationSuccessScreen: React.FC = (props) = WorkflowCardHeaderProps={workflowCardHeaderProps} WorkflowCardActionsProps={workflowCardActionsProps} WorkflowCardBodyProps={workflowCardBodyProps} - emptyStateProps={emptyStatesProps} + EmptyStateProps={emptyStatesProps} {...otherRegistrationSuccessScreenProps} /> ); diff --git a/login-workflow/src/screens/SuccessScreen/SuccessScreenBase.tsx b/login-workflow/src/screens/SuccessScreen/SuccessScreenBase.tsx index adc22b54..78b7df75 100644 --- a/login-workflow/src/screens/SuccessScreen/SuccessScreenBase.tsx +++ b/login-workflow/src/screens/SuccessScreen/SuccessScreenBase.tsx @@ -31,7 +31,7 @@ const makeStyles = (): StyleSheet.NamedStyles<{ */ export const SuccessScreenBase: React.FC = (props) => { - const { dismissButtonLabel = '', canDismiss, onDismiss, emptyStateProps } = props; + const { dismissButtonLabel = '', canDismiss, onDismiss, EmptyStateProps } = props; const cardBaseProps = props.WorkflowCardBaseProps || {}; const headerProps = props.WorkflowCardHeaderProps || {}; @@ -46,7 +46,7 @@ export const SuccessScreenBase: React.FC = (props) => { {Object.keys(instructionsProps).length !== 0 && } - {emptyStateProps && } + {EmptyStateProps && }