Add UI and logic for handling worker errors

This commit is contained in:
Nilay Majorwar
2022-01-27 00:03:30 +05:30
parent 35bebf045f
commit 31b0d7b7b8
6 changed files with 108 additions and 8 deletions

View File

@ -5,12 +5,15 @@ import "@blueprintjs/icons/lib/css/blueprint-icons.css";
import "react-mosaic-component/react-mosaic-component.css";
import type { AppProps } from "next/app";
import { DarkModeProvider } from "../ui/providers/dark-mode-provider";
import { ErrorBoundaryProvider } from "../ui/providers/error-boundary-provider";
function MyApp({ Component, pageProps }: AppProps) {
return (
<DarkModeProvider>
<Component {...pageProps} />
</DarkModeProvider>
<ErrorBoundaryProvider>
<DarkModeProvider>
<Component {...pageProps} />
</DarkModeProvider>
</ErrorBoundaryProvider>
);
}