Skip to content

Commit

Permalink
Revert test code and update js docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ektaghag-eaton committed Sep 21, 2023
1 parent d17179c commit 358db7c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 34 deletions.
31 changes: 1 addition & 30 deletions login-workflow/example/src/navigation/AppRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -119,33 +116,7 @@ export const AppRouter: React.FC = () => {
</RegistrationContextProvider>
}
>
<Route
path={'/self-registration'}
element={
<RegistrationWorkflow>
<EulaScreen />
<CreatePasswordScreen
PasswordProps={{
newPasswordLabel: 'NewPassword',
confirmPasswordLabel: 'ConfirmPassword',
onPasswordChange: (passwordData: { password: string; confirm: string }): void => {
console.log('passwordData', passwordData);
},

onSubmit() {
console.log('submit');
},

initialNewPasswordValue: 'Test@12',
initialConfirmPasswordValue: 'Test@123',
passwordNotMatchError: 'not matched',
passwordRequirements: [],
}}
/>
<CreateAccountScreen />
</RegistrationWorkflow>
}
/>
<Route path={'/self-registration'} element={<RegistrationWorkflow />} />
<Route path={'/register-by-invite'} element={<RegistrationWorkflow isInviteRegistration />} />
</Route>
</Routes>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 358db7c

Please sign in to comment.