mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Theme done
This commit is contained in:
35
App.tsx
35
App.tsx
@ -28,22 +28,25 @@ setConsole({
|
||||
const App: React.FC = () => {
|
||||
return (
|
||||
<AppearanceProvider>
|
||||
<ThemeManager>
|
||||
<ReactQueryCacheProvider queryCache={queryCache}>
|
||||
<Provider store={store}>
|
||||
<PersistGate persistor={persistor}>
|
||||
{bootstrapped => {
|
||||
if (bootstrapped) {
|
||||
require('src/i18n/i18n')
|
||||
return <Index />
|
||||
} else {
|
||||
return <></>
|
||||
}
|
||||
}}
|
||||
</PersistGate>
|
||||
</Provider>
|
||||
</ReactQueryCacheProvider>
|
||||
</ThemeManager>
|
||||
<ReactQueryCacheProvider queryCache={queryCache}>
|
||||
<Provider store={store}>
|
||||
<PersistGate persistor={persistor}>
|
||||
{bootstrapped => {
|
||||
if (bootstrapped) {
|
||||
console.log('Bootstrapped!')
|
||||
require('src/i18n/i18n')
|
||||
return (
|
||||
<ThemeManager>
|
||||
<Index />
|
||||
</ThemeManager>
|
||||
)
|
||||
} else {
|
||||
return <></>
|
||||
}
|
||||
}}
|
||||
</PersistGate>
|
||||
</Provider>
|
||||
</ReactQueryCacheProvider>
|
||||
</AppearanceProvider>
|
||||
)
|
||||
}
|
||||
|
Reference in New Issue
Block a user