From 358db7c7d658ab5b4229d2387dc3e5ed8a2145c3 Mon Sep 17 00:00:00 2001 From: ektaghag-eaton Date: Thu, 21 Sep 2023 21:47:16 +0530 Subject: [PATCH] Revert test code and update js docs --- .../example/src/navigation/AppRouter.tsx | 31 +------------------ .../CreatePasswordScreen.tsx | 3 +- .../CreatePasswordScreenBase.tsx | 3 +- 3 files changed, 3 insertions(+), 34 deletions(-) diff --git a/login-workflow/example/src/navigation/AppRouter.tsx b/login-workflow/example/src/navigation/AppRouter.tsx index c5c1a3c1..3d384b4b 100644 --- a/login-workflow/example/src/navigation/AppRouter.tsx +++ b/login-workflow/example/src/navigation/AppRouter.tsx @@ -8,9 +8,6 @@ import { RegistrationContextProvider, ResetPasswordScreen, RegistrationWorkflow, - EulaScreen, - CreatePasswordScreen, - CreateAccountScreen, } from '@brightlayer-ui/react-auth-workflow'; import { useApp } from '../contexts/AppContextProvider'; import { useNavigate } from 'react-router'; @@ -119,33 +116,7 @@ export const AppRouter: React.FC = () => { } > - - - { - console.log('passwordData', passwordData); - }, - - onSubmit() { - console.log('submit'); - }, - - initialNewPasswordValue: 'Test@12', - initialConfirmPasswordValue: 'Test@123', - passwordNotMatchError: 'not matched', - passwordRequirements: [], - }} - /> - - - } - /> + } /> } /> diff --git a/login-workflow/src/screens/CreatePasswordScreen/CreatePasswordScreen.tsx b/login-workflow/src/screens/CreatePasswordScreen/CreatePasswordScreen.tsx index 27cfc54e..27c7990c 100644 --- a/login-workflow/src/screens/CreatePasswordScreen/CreatePasswordScreen.tsx +++ b/login-workflow/src/screens/CreatePasswordScreen/CreatePasswordScreen.tsx @@ -7,8 +7,7 @@ import { useRegistrationContext, useRegistrationWorkflowContext } from '../../co import { useErrorManager } from '../../contexts/ErrorContext/useErrorManager'; /** - * Component renders a screen with account details information for support with the application. - * Contact information is pulled from the context passed into the workflow. + * The component renders a screen with the password and confirm password field for creating a new password. * * @param errorDisplayConfig configuration for customizing how errors are displayed * @param PasswordProps props passed from SetPassword component diff --git a/login-workflow/src/screens/CreatePasswordScreen/CreatePasswordScreenBase.tsx b/login-workflow/src/screens/CreatePasswordScreen/CreatePasswordScreenBase.tsx index 6ddfea19..6e3c9916 100644 --- a/login-workflow/src/screens/CreatePasswordScreen/CreatePasswordScreenBase.tsx +++ b/login-workflow/src/screens/CreatePasswordScreen/CreatePasswordScreenBase.tsx @@ -11,8 +11,7 @@ import { SetPassword } from '../../components/SetPassword'; import ErrorManager from '../../components/Error/ErrorManager'; /** - * Component renders a screen with account details information for support with the application. - * Contact information is pulled from the context passed into the workflow. + * The component renders a screen with the password and confirm password field for creating a new password. * * @param errorDisplayConfig configuration for customizing how errors are displayed * @param PasswordProps props passed from SetPassword component