Unverified Commit 1967b77f authored by Jyothish's avatar Jyothish Committed by GitHub
Browse files

Remove dedicated error boundary from Browser.tsx (#568)

parent 59505cb3
...@@ -58,8 +58,6 @@ import TrackPanelTabs from './track-panel/track-panel-tabs/TrackPanelTabs'; ...@@ -58,8 +58,6 @@ import TrackPanelTabs from './track-panel/track-panel-tabs/TrackPanelTabs';
import BrowserAppBar from './browser-app-bar/BrowserAppBar'; import BrowserAppBar from './browser-app-bar/BrowserAppBar';
import Drawer from './drawer/Drawer'; import Drawer from './drawer/Drawer';
import { StandardAppLayout } from 'src/shared/components/layout'; import { StandardAppLayout } from 'src/shared/components/layout';
import ErrorBoundary from 'src/shared/components/error-boundary/ErrorBoundary';
import { NewTechError } from 'src/shared/components/error-screen';
import BrowserInterstitial from './interstitial/BrowserInterstitial'; import BrowserInterstitial from './interstitial/BrowserInterstitial';
import { RootState } from 'src/store'; import { RootState } from 'src/store';
...@@ -211,14 +209,4 @@ const WasmLoadingBrowserContainer = () => { ...@@ -211,14 +209,4 @@ const WasmLoadingBrowserContainer = () => {
return <ReduxConnectedBrowser />; return <ReduxConnectedBrowser />;
}; };
const ErrorWrappedBrowser = () => { export default WasmLoadingBrowserContainer;
// if an error happens during loading of the browser,
// we will be able to show custom error string
return (
<ErrorBoundary fallbackComponent={NewTechError}>
<WasmLoadingBrowserContainer />
</ErrorBoundary>
);
};
export default ErrorWrappedBrowser;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment