mirror of
https://github.com/tooot-app/app
synced 2025-06-05 22:19:13 +02:00
Restructure the project
This commit is contained in:
6
App.tsx
6
App.tsx
@ -1,7 +1,9 @@
|
||||
import React from 'react'
|
||||
import { QueryCache, ReactQueryCacheProvider, setConsole } from 'react-query'
|
||||
import { Provider } from 'react-redux'
|
||||
|
||||
import { Index } from 'src/Index'
|
||||
import store from 'src/store'
|
||||
|
||||
const queryCache = new QueryCache()
|
||||
|
||||
@ -18,7 +20,9 @@ if (__DEV__) {
|
||||
|
||||
const App: React.FC = () => (
|
||||
<ReactQueryCacheProvider queryCache={queryCache}>
|
||||
<Index />
|
||||
<Provider store={store}>
|
||||
<Index />
|
||||
</Provider>
|
||||
</ReactQueryCacheProvider>
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user