2017-12-21 22:08:54 +01:00
|
|
|
import { connect } from 'react-redux';
|
2017-12-01 04:51:55 +01:00
|
|
|
import {
|
|
|
|
createShapeShift,
|
|
|
|
shapeShiftInit,
|
|
|
|
getCoinStats,
|
|
|
|
clearShapeShift,
|
|
|
|
getActiveShift,
|
2017-12-21 22:08:54 +01:00
|
|
|
} from 'redux/actions/shape_shift';
|
2018-04-19 20:49:47 +02:00
|
|
|
import { selectReceiveAddress } from 'lbry-redux';
|
2017-12-21 22:08:54 +01:00
|
|
|
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);
|