feat: added error boundary

This commit is contained in:
Daniel Hougaard
2024-09-20 01:29:01 +04:00
parent 0225e6fabb
commit c50e325f53

View File

@@ -79,7 +79,7 @@ class ErrorBoundary extends React.Component<ErrorBoundaryProps, ErrorBoundarySta
}
}
const ErrorBoundaryWrapper: React.FC<ErrorBoundaryProps> = ({ children }) => {
const ErrorBoundaryWrapper = ({ children }: ErrorBoundaryProps) => {
return <ErrorBoundary>{children}</ErrorBoundary>;
};