From 5b92d86d7b31b85d34ef5b30a1faddb89b054aec Mon Sep 17 00:00:00 2001 From: SKairinos Date: Sun, 2 Jul 2023 13:48:48 +0100 Subject: [PATCH] fix: remove browser router from app --- src/components/App.tsx | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/components/App.tsx b/src/components/App.tsx index 1ee2ee15..9807cc7f 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -3,9 +3,6 @@ import { Provider, ProviderProps } from 'react-redux'; -import { - BrowserRouter -} from 'react-router-dom'; import { Action, AnyAction @@ -29,7 +26,6 @@ import { ScreenTimeDialog } from '../features'; import '../scripts'; -import ScrollRoutes from './ScrollRoutes'; export interface AppProps< A extends Action = AnyAction, @@ -37,8 +33,6 @@ export interface AppProps< > { theme: ThemeProviderProps['theme']; store: ProviderProps['store']; - header?: React.ReactElement; - footer?: React.ReactElement; children: React.ReactNode; maxIdleSeconds?: number; maxTotalSeconds?: number; @@ -50,8 +44,6 @@ const App = < >({ theme, store, - header, - footer, children, maxIdleSeconds = 60 * 60, maxTotalSeconds = 60 * 60 @@ -142,13 +134,7 @@ const App = < open={!isIdle && tooMuchScreenTime} onClose={resetTotalSeconds} /> - - {header} - - {children} - - {footer} - + {children} );