Skip to content

Commit

Permalink
Revert previous commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Made1ra committed Dec 17, 2024
1 parent 0be3d79 commit 7fa4d71
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
13 changes: 8 additions & 5 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,20 @@ import { Outlet } from 'react-router-dom'
import { StyledEngineProvider, ThemeProvider } from '@mui/material/styles'
import { ChatProvider } from '~/context/chat-context'
import { theme } from './styles/app-theme/custom-mui.styles'
import QueryProvider from '~/QueryProvider'
import PopupsProvider from './PopupsProvider'

const App = () => {
return (
<StyledEngineProvider injectFirst>
<ThemeProvider theme={theme}>
<PopupsProvider>
<ChatProvider>
<Outlet />
</ChatProvider>
</PopupsProvider>
<QueryProvider>
<PopupsProvider>
<ChatProvider>
<Outlet />
</ChatProvider>
</PopupsProvider>
</QueryProvider>
</ThemeProvider>
</StyledEngineProvider>
)
Expand Down
5 changes: 1 addition & 4 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { Provider } from 'react-redux'

import { store } from '~/redux/store'
import { setupInterceptors } from '~/services/setup-interceptors'
import QueryProvider from '~/QueryProvider'
import { router } from '~/router/router'
import '~/styles/index.css'
import '~scss/styles.scss'
Expand All @@ -16,9 +15,7 @@ const root = createRoot(document.getElementById('root') as HTMLElement)
root.render(
<React.StrictMode>
<Provider store={store}>
<QueryProvider>
<RouterProvider router={router} />
</QueryProvider>
<RouterProvider router={router} />
</Provider>
</React.StrictMode>
)
Expand Down

0 comments on commit 7fa4d71

Please sign in to comment.