From 17cbc64273545086869e7ad273bb40047b5ca61d Mon Sep 17 00:00:00 2001 From: anovazzi1 Date: Fri, 25 Aug 2023 17:17:09 -0300 Subject: [PATCH] update browser route context location --- src/frontend/src/contexts/index.tsx | 3 +++ src/frontend/src/index.tsx | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/frontend/src/contexts/index.tsx b/src/frontend/src/contexts/index.tsx index 64142f942..acc7f4070 100644 --- a/src/frontend/src/contexts/index.tsx +++ b/src/frontend/src/contexts/index.tsx @@ -9,11 +9,13 @@ import { LocationProvider } from "./locationContext"; import { TabsProvider } from "./tabsContext"; import { TypesProvider } from "./typesContext"; import { UndoRedoProvider } from "./undoRedoContext"; +import { BrowserRouter } from "react-router-dom"; export default function ContextWrapper({ children }: { children: ReactNode }) { //element to wrap all context return ( <> + @@ -33,6 +35,7 @@ export default function ContextWrapper({ children }: { children: ReactNode }) { + ); } diff --git a/src/frontend/src/index.tsx b/src/frontend/src/index.tsx index 2542f4903..db196080b 100644 --- a/src/frontend/src/index.tsx +++ b/src/frontend/src/index.tsx @@ -17,10 +17,8 @@ const root = ReactDOM.createRoot( ); root.render( - - ); reportWebVitals();