Skip to content

Commit 02afa83

Browse files
authored
Merge pull request #27 from fhlavac/main
fix(typo): Fix typo in defaultErrorDescription prop
2 parents 3a5adbb + 802265f commit 02afa83

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/module/src/ErrorBoundary/ErrorBoundary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class ErrorBoundary extends React.Component<ErrorPageProps, ErrorPageState> {
6666
)}
6767
</>
6868
}
69-
defaulErrorDescription={this.props.defaultErrorDescription}
69+
defaultErrorDescription={this.props.defaultErrorDescription}
7070
/>
7171
</React.Fragment>
7272
);

packages/module/src/ErrorState/ErrorState.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ const useStyles = createUseStyles({
2222
export interface ErrorStateProps extends Omit<EmptyStateProps, 'children'> {
2323
/** Title of the error. */
2424
errorTitle?: string;
25-
/** A description of the error, if no description is provided then it will be set to the defaulErrorDescription. */
25+
/** A description of the error, if no description is provided then it will be set to the defaultErrorDescription. */
2626
errorDescription?: React.ReactNode;
2727
/** A default description of the error used if no errorDescription is provided. */
28-
defaulErrorDescription?: React.ReactNode;
28+
defaultErrorDescription?: React.ReactNode;
2929
}
3030

31-
const ErrorState: React.FunctionComponent<ErrorStateProps> = ({ errorTitle = 'Something went wrong', errorDescription, defaulErrorDescription, ...props }: ErrorStateProps) => {
31+
const ErrorState: React.FunctionComponent<ErrorStateProps> = ({ errorTitle = 'Something went wrong', errorDescription, defaultErrorDescription, ...props }: ErrorStateProps) => {
3232
const classes = useStyles();
3333
return (
3434
<EmptyState variant={EmptyStateVariant.large} {...props}>
@@ -38,7 +38,7 @@ const ErrorState: React.FunctionComponent<ErrorStateProps> = ({ errorTitle = 'So
3838
</Title>
3939
<EmptyStateBody>
4040
<Stack>
41-
{errorDescription ? <StackItem>{errorDescription}</StackItem> : defaulErrorDescription}
41+
{errorDescription ? <StackItem>{errorDescription}</StackItem> : defaultErrorDescription}
4242
</Stack>
4343
</EmptyStateBody>
4444
{document.referrer ? (

0 commit comments

Comments
 (0)