You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.4 KiB
52 lines
1.4 KiB
// @flow
|
|
|
|
import { combineReducers } from 'redux'
|
|
import { routerReducer as router } from 'react-router-redux'
|
|
|
|
import type { LocationShape } from 'react-router'
|
|
|
|
import type { CounterValuesState } from '@ledgerhq/live-common/lib/countervalues/types'
|
|
import CounterValues from 'helpers/countervalues'
|
|
import accounts from './accounts'
|
|
import application from './application'
|
|
import devices from './devices'
|
|
import modals from './modals'
|
|
import settings from './settings'
|
|
import update from './update'
|
|
import onboarding from './onboarding'
|
|
import bridgeSync from './bridgeSync'
|
|
|
|
import type { AccountsState } from './accounts'
|
|
import type { ApplicationState } from './application'
|
|
import type { DevicesState } from './devices'
|
|
import type { ModalsState } from './modals'
|
|
import type { SettingsState } from './settings'
|
|
import type { UpdateState } from './update'
|
|
import type { OnboardingState } from './onboarding'
|
|
import type { BridgeSyncState } from './bridgeSync'
|
|
|
|
export type State = {
|
|
accounts: AccountsState,
|
|
application: ApplicationState,
|
|
countervalues: CounterValuesState,
|
|
devices: DevicesState,
|
|
modals: ModalsState,
|
|
router: LocationShape,
|
|
settings: SettingsState,
|
|
update: UpdateState,
|
|
onboarding: OnboardingState,
|
|
bridgeSync: BridgeSyncState,
|
|
}
|
|
|
|
export default combineReducers({
|
|
accounts,
|
|
application,
|
|
countervalues: CounterValues.reducer,
|
|
devices,
|
|
modals,
|
|
router,
|
|
settings,
|
|
update,
|
|
onboarding,
|
|
bridgeSync,
|
|
})
|
|
|