1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Theme done

This commit is contained in:
Zhiyuan Zheng
2020-11-29 18:08:31 +01:00
parent 24d0681c9e
commit 1493e20962
24 changed files with 280 additions and 150 deletions

35
App.tsx
View File

@ -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>
)
}