Provide theme to top level ErrorBoundary

If the theme is not provided then the App's ErrorBoundary will render
white text on white background, and vice versa for black.
This commit is contained in:
Hornwitser committed 2024-02-06 22:43:04 +01:00
1 parent 2e25831b4d
commit 6b85567bc6
1 file changed
+6 -6
+6 -6
View File
@@ -104,16 +104,16 @@ export default function App(props: AppProps) {
}
return (
<ErrorBoundary Component={ErrorCard}>
<ConfigProvider
theme={{ algorithm: theme.darkAlgorithm }}
>
<ConfigProvider
theme={{ algorithm: theme.darkAlgorithm }}
>
<ErrorBoundary Component={ErrorCard}>
<ControlContext.Provider value={props.control}>
<BrowserRouter basename={webRoot}>
{page}
</BrowserRouter>
</ControlContext.Provider>
</ConfigProvider>
</ErrorBoundary>
</ErrorBoundary>
</ConfigProvider>
);
}