fix misnamed modal
This commit is contained in:
parent
0348606859
commit
a7d8d1a7b0
3 changed files with 8 additions and 8 deletions
|
@ -3,8 +3,8 @@ import Router from "component/router";
|
|||
import Header from "component/header";
|
||||
import ModalError from "component/modalError";
|
||||
import ModalDownloading from "component/modalDownloading";
|
||||
import UpgradeModal from "component/modalUpgrade";
|
||||
import WelcomeModal from "component/modalWelcome";
|
||||
import ModalUpgrade from "component/modalUpgrade";
|
||||
import ModalWelcome from "component/modalWelcome";
|
||||
import lbry from "lbry";
|
||||
import { Line } from "rc-progress";
|
||||
|
||||
|
@ -32,10 +32,10 @@ class App extends React.PureComponent {
|
|||
<div id="main-content">
|
||||
<Router />
|
||||
</div>
|
||||
{modal == "upgrade" && <UpgradeModal />}
|
||||
{modal == "upgrade" && <ModalUpgrade />}
|
||||
{modal == "downloading" && <ModalDownloading />}
|
||||
{modal == "error" && <ModalError />}
|
||||
{modal == "welcome" && <WelcomeModal />}
|
||||
{modal == "welcome" && <ModalWelcome />}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ import {
|
|||
makeSelectClaimRewardError,
|
||||
makeSelectRewardByType,
|
||||
} from "selectors/rewards";
|
||||
import WelcomeModal from "./view";
|
||||
import ModalWelcome from "./view";
|
||||
|
||||
const select = (state, props) => {
|
||||
const selectHasClaimed = makeSelectHasClaimedReward(),
|
||||
|
@ -25,4 +25,4 @@ const perform = dispatch => ({
|
|||
closeModal: () => dispatch(doCloseModal()),
|
||||
});
|
||||
|
||||
export default connect(select, perform)(WelcomeModal);
|
||||
export default connect(select, perform)(ModalWelcome);
|
||||
|
|
|
@ -4,7 +4,7 @@ import { CreditAmount } from "component/common";
|
|||
import Link from "component/link";
|
||||
import RewardLink from "component/rewardLink";
|
||||
|
||||
class WelcomeModal extends React.PureComponent {
|
||||
class ModalWelcome extends React.PureComponent {
|
||||
render() {
|
||||
const { closeModal, hasClaimed, isRewardApproved, reward } = this.props;
|
||||
|
||||
|
@ -78,4 +78,4 @@ class WelcomeModal extends React.PureComponent {
|
|||
}
|
||||
}
|
||||
|
||||
export default WelcomeModal;
|
||||
export default ModalWelcome;
|
||||
|
|
Loading…
Add table
Reference in a new issue