mirror of
https://github.com/wgh136/nysoure.git
synced 2025-09-27 12:17:24 +00:00
add AppContext for state management and update ResourcesView to utilize context
This commit is contained in:
@@ -6,6 +6,7 @@ import i18n from "i18next";
|
||||
import {initReactI18next} from "react-i18next";
|
||||
import LanguageDetector from "i18next-browser-languagedetector";
|
||||
import {i18nData} from "./i18n.ts";
|
||||
import AppContext from "./components/AppContext.tsx";
|
||||
|
||||
i18n
|
||||
.use(initReactI18next)
|
||||
@@ -20,7 +21,9 @@ i18n
|
||||
}).then(() => {
|
||||
createRoot(document.getElementById('root')!).render(
|
||||
<StrictMode>
|
||||
<App/>
|
||||
<AppContext>
|
||||
<App/>
|
||||
</AppContext>
|
||||
</StrictMode>,
|
||||
)
|
||||
})
|
||||
|
Reference in New Issue
Block a user