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

26 lines
616 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-18 06:03:01 +02:00
import { doShowSnackBar, 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,
doShowSnackBar,
})(ShapeShift);