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';
|
|
|
|
import { doShowSnackBar } from 'redux/actions/app';
|
|
|
|
import { selectReceiveAddress } from 'redux/selectors/wallet';
|
|
|
|
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,
|
|
|
|
doShowSnackBar,
|
|
|
|
})(ShapeShift);
|