1
0

moved ConfigProvider up in the hierarchy (to main.jsx) to wrap the whole App

This commit is contained in:
Jose
2025-02-26 21:08:19 +01:00
parent cf9d5e71fe
commit 40b8f49b89
13 changed files with 104 additions and 36 deletions

View File

@@ -3,8 +3,15 @@ import { createRoot } from 'react-dom/client'
import './css/index.css'
import App from './components/App.jsx'
import { ThemeProvider } from './contexts/ThemeContext.jsx'
import { ConfigProvider } from './contexts/ConfigContext.jsx'
createRoot(document.getElementById('root')).render(
<StrictMode>
<App />
<ThemeProvider>
<ConfigProvider>
<App />
</ConfigProvider>
</ThemeProvider>
</StrictMode>,
)