lbry-desktop/ui/js/modal/modalFirstReward/index.js
2017-11-13 16:02:23 -05:00

20 lines
572 B
JavaScript

import React from "react";
import rewards from "rewards";
import { connect } from "react-redux";
import { doCloseModal } from "redux/actions/app";
import { makeSelectRewardByType } from "redux/selectors/rewards";
import ModalFirstReward from "./view";
const select = (state, props) => {
const selectReward = makeSelectRewardByType();
return {
reward: selectReward(state, { reward_type: rewards.TYPE_NEW_USER }),
};
};
const perform = dispatch => ({
closeModal: () => dispatch(doCloseModal()),
});
export default connect(select, perform)(ModalFirstReward);