Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/module/src/ErrorBoundary/ErrorBoundary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class ErrorBoundary extends React.Component<ErrorPageProps, ErrorPageState> {
)}
</>
}
defaulErrorDescription={this.props.defaultErrorDescription}
defaultErrorDescription={this.props.defaultErrorDescription}
/>
</React.Fragment>
);
Expand Down
8 changes: 4 additions & 4 deletions packages/module/src/ErrorState/ErrorState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ const useStyles = createUseStyles({
export interface ErrorStateProps extends Omit<EmptyStateProps, 'children'> {
/** Title of the error. */
errorTitle?: string;
/** A description of the error, if no description is provided then it will be set to the defaulErrorDescription. */
/** A description of the error, if no description is provided then it will be set to the defaultErrorDescription. */
errorDescription?: React.ReactNode;
/** A default description of the error used if no errorDescription is provided. */
defaulErrorDescription?: React.ReactNode;
defaultErrorDescription?: React.ReactNode;
}

const ErrorState: React.FunctionComponent<ErrorStateProps> = ({ errorTitle = 'Something went wrong', errorDescription, defaulErrorDescription, ...props }: ErrorStateProps) => {
const ErrorState: React.FunctionComponent<ErrorStateProps> = ({ errorTitle = 'Something went wrong', errorDescription, defaultErrorDescription, ...props }: ErrorStateProps) => {
const classes = useStyles();
return (
<EmptyState variant={EmptyStateVariant.large} {...props}>
Expand All @@ -38,7 +38,7 @@ const ErrorState: React.FunctionComponent<ErrorStateProps> = ({ errorTitle = 'So
</Title>
<EmptyStateBody>
<Stack>
{errorDescription ? <StackItem>{errorDescription}</StackItem> : defaulErrorDescription}
{errorDescription ? <StackItem>{errorDescription}</StackItem> : defaultErrorDescription}
</Stack>
</EmptyStateBody>
{document.referrer ? (
Expand Down