Skip to content

Commit 427d31f

Browse files
refactor(common): fix typo in ErrorBoundary component name
1 parent 54ea9d9 commit 427d31f

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import React from 'react';
2-
import { ErrorBoundary } from 'react-error-boundary';
2+
import { ErrorBoundary as ReactErrorBoundary } from 'react-error-boundary';
33
import ErrorFallback from './ErrorFallback';
44

5-
const ErrorBoundry = ({ children }) => {
5+
const ErrorBoundary = ({ children }) => {
66
const onErrorReset = () => {
77
/**
88
* Had to do this because we have placed the ErrorBoundary at the top level
@@ -12,10 +12,10 @@ const ErrorBoundry = ({ children }) => {
1212
};
1313

1414
return (
15-
<ErrorBoundary FallbackComponent={ErrorFallback} onReset={onErrorReset}>
15+
<ReactErrorBoundary FallbackComponent={ErrorFallback} onReset={onErrorReset}>
1616
{children}
17-
</ErrorBoundary>
17+
</ReactErrorBoundary>
1818
);
1919
};
2020

21-
export default ErrorBoundry;
21+
export default ErrorBoundary;

0 commit comments

Comments
 (0)