fix misnamed modal

This commit is contained in:
Jeremy Kauffman 2017-07-10 13:19:42 -04:00
parent 0348606859
commit a7d8d1a7b0
3 changed files with 8 additions and 8 deletions

View file

@ -3,8 +3,8 @@ import Router from "component/router";
import Header from "component/header"; import Header from "component/header";
import ModalError from "component/modalError"; import ModalError from "component/modalError";
import ModalDownloading from "component/modalDownloading"; import ModalDownloading from "component/modalDownloading";
import UpgradeModal from "component/modalUpgrade"; import ModalUpgrade from "component/modalUpgrade";
import WelcomeModal from "component/modalWelcome"; import ModalWelcome from "component/modalWelcome";
import lbry from "lbry"; import lbry from "lbry";
import { Line } from "rc-progress"; import { Line } from "rc-progress";
@ -32,10 +32,10 @@ class App extends React.PureComponent {
<div id="main-content"> <div id="main-content">
<Router /> <Router />
</div> </div>
{modal == "upgrade" && <UpgradeModal />} {modal == "upgrade" && <ModalUpgrade />}
{modal == "downloading" && <ModalDownloading />} {modal == "downloading" && <ModalDownloading />}
{modal == "error" && <ModalError />} {modal == "error" && <ModalError />}
{modal == "welcome" && <WelcomeModal />} {modal == "welcome" && <ModalWelcome />}
</div> </div>
); );
} }

View file

@ -8,7 +8,7 @@ import {
makeSelectClaimRewardError, makeSelectClaimRewardError,
makeSelectRewardByType, makeSelectRewardByType,
} from "selectors/rewards"; } from "selectors/rewards";
import WelcomeModal from "./view"; import ModalWelcome from "./view";
const select = (state, props) => { const select = (state, props) => {
const selectHasClaimed = makeSelectHasClaimedReward(), const selectHasClaimed = makeSelectHasClaimedReward(),
@ -25,4 +25,4 @@ const perform = dispatch => ({
closeModal: () => dispatch(doCloseModal()), closeModal: () => dispatch(doCloseModal()),
}); });
export default connect(select, perform)(WelcomeModal); export default connect(select, perform)(ModalWelcome);

View file

@ -4,7 +4,7 @@ import { CreditAmount } from "component/common";
import Link from "component/link"; import Link from "component/link";
import RewardLink from "component/rewardLink"; import RewardLink from "component/rewardLink";
class WelcomeModal extends React.PureComponent { class ModalWelcome extends React.PureComponent {
render() { render() {
const { closeModal, hasClaimed, isRewardApproved, reward } = this.props; const { closeModal, hasClaimed, isRewardApproved, reward } = this.props;
@ -78,4 +78,4 @@ class WelcomeModal extends React.PureComponent {
} }
} }
export default WelcomeModal; export default ModalWelcome;