-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.js
More file actions
31 lines (24 loc) · 763 Bytes
/
App.js
File metadata and controls
31 lines (24 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import React from 'react'
import {Provider} from 'react-redux'
import {createStore,combineReducers} from 'redux'
import {Layout} from "./components/layout/layout"
import {ThemeManager} from './components/ui/themeManager/themeManager'
import UserInfoReducer from './store/reducers/userInfoReducer'
import TransactionDataReducer from './store/reducers/transactionDataReducer'
import PeriodReducer from './store/reducers/periodReducer'
const RootReducer = combineReducers({
user:UserInfoReducer,
transaction:TransactionDataReducer,
period:PeriodReducer
})
const store = createStore(RootReducer)
const App = ()=>{
return(
<Provider store={store}>
<ThemeManager>
<Layout/>
</ThemeManager>
</Provider>
)
}
export default App