Skip to content

Commit

Permalink
Reorder GlobalProvider and BrowserRouter components for consistent st…
Browse files Browse the repository at this point in the history
…ructure in App
  • Loading branch information
aelassas committed Dec 29, 2024
1 parent a4759b5 commit aff9502
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions backend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ const CreateCountry = lazy(() => import('@/pages/CreateCountry'))
const UpdateCountry = lazy(() => import('@/pages/UpdateCountry'))

const App = () => (
<GlobalProvider>
<BrowserRouter>
<BrowserRouter>
<GlobalProvider>
<ScrollToTop />

<div className="app">
Expand Down Expand Up @@ -82,8 +82,8 @@ const App = () => (
</Routes>
</Suspense>
</div>
</BrowserRouter>
</GlobalProvider>
</GlobalProvider>
</BrowserRouter>
)

export default App
12 changes: 6 additions & 6 deletions frontend/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ const Suppliers = lazy(() => import('@/pages/Suppliers'))
const Faq = lazy(() => import('@/pages/Faq'))

const App = () => (
<GlobalProvider>
<RecaptchaProvider>
<BrowserRouter>
<BrowserRouter>
<GlobalProvider>
<RecaptchaProvider>
<ScrollToTop />

<div className="app">
Expand Down Expand Up @@ -68,9 +68,9 @@ const App = () => (
</Routes>
</Suspense>
</div>
</BrowserRouter>
</RecaptchaProvider>
</GlobalProvider>
</RecaptchaProvider>
</GlobalProvider>
</BrowserRouter>
)

export default App

0 comments on commit aff9502

Please sign in to comment.