lbry-desktop/src/renderer/component/shapeShift/index.js

25 lines
582 B
JavaScript
Raw Normal View History

import { connect } from 'react-redux';
2017-12-01 04:51:55 +01:00
import {
createShapeShift,
shapeShiftInit,
getCoinStats,
clearShapeShift,
getActiveShift,
} from 'redux/actions/shape_shift';
2018-04-19 20:49:47 +02:00
import { selectReceiveAddress } from 'lbry-redux';
import { selectShapeShift } from 'redux/selectors/shape_shift';
import ShapeShift from './view';
2017-12-01 04:51:55 +01:00
const select = state => ({
receiveAddress: selectReceiveAddress(state),
shapeShift: selectShapeShift(state),
});
export default connect(select, {
shapeShiftInit,
getCoinStats,
createShapeShift,
clearShapeShift,
getActiveShift,
})(ShapeShift);