lbry-desktop/src/renderer/modal/modalFirstReward/index.js

21 lines
577 B
JavaScript
Raw Normal View History

2017-07-25 00:59:26 +02:00
import React from "react";
import rewards from "rewards";
import { connect } from "react-redux";
2017-11-13 22:02:23 +01:00
import { doCloseModal } from "redux/actions/app";
import { makeSelectRewardByType } from "redux/selectors/rewards";
2017-07-25 00:59:26 +02:00
import ModalFirstReward from "./view";
const select = (state, props) => {
const selectReward = makeSelectRewardByType();
return {
2017-12-09 18:59:10 +01:00
reward: selectReward(state, { reward_type: rewards.TYPE_CONFIRM_EMAIL }),
2017-07-25 00:59:26 +02:00
};
};
const perform = dispatch => ({
closeModal: () => dispatch(doCloseModal()),
});
export default connect(select, perform)(ModalFirstReward);