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.
22 lines
824 B
22 lines
824 B
6 years ago
|
import { connect } from 'react-redux'
|
||
|
import { withTheme } from 'styled-components'
|
||
|
import { infoSelectors } from 'reducers/info'
|
||
|
import { lndSelectors } from 'reducers/lnd'
|
||
|
import { onboardingSelectors } from 'reducers/onboarding'
|
||
|
|
||
|
import Syncing from 'components/Syncing'
|
||
|
import withLoading from 'components/withLoading'
|
||
|
|
||
|
const mapStateToProps = state => ({
|
||
|
address: state.address.address,
|
||
|
hasSynced: infoSelectors.hasSynced(state),
|
||
|
syncStatus: state.lnd.syncStatus,
|
||
|
syncPercentage: lndSelectors.syncPercentage(state),
|
||
|
blockHeight: state.lnd.blockHeight,
|
||
|
lndBlockHeight: state.lnd.lndBlockHeight,
|
||
|
lndCfilterHeight: state.lnd.lndCfilterHeight,
|
||
|
isLoading: infoSelectors.infoLoading(state) || onboardingSelectors.startingLnd(state)
|
||
|
})
|
||
|
|
||
|
export default connect(mapStateToProps)(withLoading(withTheme(Syncing)))
|