Skip to content

Commit

Permalink
update TFunction prop & docs
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffGreiner-eaton committed Mar 7, 2024
1 parent fab13c0 commit 7dd2edb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion login-workflow/docs/components/error-manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import { ErrorManager } from '@brightlayer-ui/react-auth-workflow';
| onClose | `() => void` | Function to call when the close/dismiss button is clicked. | |
| dialogConfig | `{title?: string, dismissLabel?: string}` | Configuration options for the dialog. See [DialogConfig Props](#dialogconfigprops) | |
| messageBoxConfig | `MessageBoxProps` | Configuration options for the message box. See [MessageBoxProps](#messageboxprops) | |
| t | `TFunction \| ((key: string) => string)` | Translate function to translate error related text. | |
| t | `TFunction` | Translate function to translate error related text. | |
| children | `ReactNode` | Message box errors will appear before or after content passed as children. | |

### DialogConfigProps
Expand Down
3 changes: 1 addition & 2 deletions login-workflow/src/components/Error/ErrorManager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ export type ErrorManagerProps = {
/**
* Translate function to translate error related text
*/

t?: TFunction | ((key: string) => string);
t?: TFunction;

/**
* Configuration options when using mode='dialog'
Expand Down

0 comments on commit 7dd2edb

Please sign in to comment.