Skip to content

Commit

Permalink
remove test code
Browse files Browse the repository at this point in the history
  • Loading branch information
ektaghag-eaton committed Dec 18, 2023
1 parent ccff178 commit dc01f3d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
2 changes: 1 addition & 1 deletion login-workflow/example/src/actions/AuthUIActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export const ProjectAuthUIActions: AuthUIActionsWithApp = (appHelper) => ({

// throw new Error('My Custom Error');

if (true) {
if (isRandomFailure()) {
// reject(new Error('LOGIN.GENERIC_ERROR'));
throw new Error('bluiAuth:LOGIN.INVALID_CREDENTIALS');
}
Expand Down
14 changes: 0 additions & 14 deletions login-workflow/example/src/screens/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,6 @@ export const Login = (): JSX.Element => (
messageBoxConfig: {
dismissible: true,
position: 'top',
sx: {
backgroundColor: 'green',
'& .MuiTypography-body1': {
color: 'red',
},
},
},
dialogConfig: {
title: 'Change Title Color',
sx: {
'& .MuiTypography-h6': {
color: 'red',
},
},
},
}}
/>
Expand Down
2 changes: 1 addition & 1 deletion login-workflow/src/components/Error/ErrorManager.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useCallback } from 'react';
import { BasicDialog } from '../Dialog/BasicDialog';
import ErrorMessageBox from './ErrorMessageBox';
import { SxProps } from '@mui/material/styles';
import { SxProps, Theme } from '@mui/material/styles';
import { useTranslation } from 'react-i18next';

export type AuthError = { cause: { title: string; errorMessage: string } };
Expand Down

0 comments on commit dc01f3d

Please sign in to comment.