refactor: adjust base components export

This commit is contained in:
GyDi
2022-11-20 22:03:55 +08:00
parent 892b919cf3
commit 8bb4803ff9
34 changed files with 44 additions and 66 deletions
+1 -3
View File
@@ -9,12 +9,10 @@ function ErrorFallback({ error }: FallbackProps) {
);
}
const BaseErrorBoundary: React.FC = (props) => {
export const BaseErrorBoundary: React.FC = (props) => {
return (
<ErrorBoundary FallbackComponent={ErrorFallback}>
{props.children}
</ErrorBoundary>
);
};
export default BaseErrorBoundary;