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.
 
 
 

41 lines
1001 B

import { connect } from 'react-redux'
import App from '../components/App'
import { fetchTicker, setCurrency } from '../../../reducers/ticker'
import { fetchBalance } from '../../../reducers/balance'
import { fetchInfo } from '../../../reducers/info'
import { createInvoice, fetchInvoice } from '../../../reducers/invoice'
import { payInvoice } from '../../../reducers/payment'
import { fetchChannels } from '../../../reducers/channels'
import {
setForm,
setAmount,
setMessage,
setPubkey,
setPaymentRequest
} from '../../../reducers/form'
const mapDispatchToProps = {
fetchTicker,
setCurrency,
fetchBalance,
fetchInfo,
setAmount,
setMessage,
setPubkey,
setPaymentRequest,
setForm,
createInvoice,
payInvoice,
fetchChannels,
fetchInvoice
}
const mapStateToProps = state => ({
ticker: state.ticker,
balance: state.balance,
payment: state.payment,
form: state.form,
invoice: state.invoice
})
export default connect(mapStateToProps, mapDispatchToProps)(App)