diff --git a/static/app-strings.json b/static/app-strings.json index 83ef17d53..fe3e53d47 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -911,4 +911,4 @@ "%claimsInChannel% publish": "%claimsInChannel% publish", "Publishing": "Publishing", "Update published": "Update published" -} \ No newline at end of file +} diff --git a/ui/component/rewardAuthIntro/view.jsx b/ui/component/rewardAuthIntro/view.jsx index 14160a97e..ce7c86e69 100644 --- a/ui/component/rewardAuthIntro/view.jsx +++ b/ui/component/rewardAuthIntro/view.jsx @@ -9,15 +9,16 @@ import I18nMessage from 'component/i18nMessage'; type Props = { balance: number, totalRewardValue: number, + title?: string, }; function RewardAuthIntro(props: Props) { - const { totalRewardValue } = props; + const { totalRewardValue, title } = props; const totalRewardRounded = Math.floor(totalRewardValue / 10) * 10; return ( ({ isFailed: selectUserInviteStatusFailed(state), isPending: selectUserInviteStatusIsPending(state), inviteAcknowledged: makeSelectClientSetting(state)(SETTINGS.INVITE_ACKNOWLEDGED), + authenticated: selectUserVerifiedEmail(state), }); const perform = dispatch => ({ diff --git a/ui/page/invite/view.jsx b/ui/page/invite/view.jsx index 9e58c23a8..44c5787b5 100644 --- a/ui/page/invite/view.jsx +++ b/ui/page/invite/view.jsx @@ -4,11 +4,13 @@ import BusyIndicator from 'component/common/busy-indicator'; import InviteNew from 'component/inviteNew'; import InviteList from 'component/inviteList'; import Page from 'component/page'; +import RewardAuthIntro from 'component/rewardAuthIntro'; type Props = { isPending: boolean, isFailed: boolean, inviteAcknowledged: boolean, + authenticated: boolean, acknowledgeInivte: () => void, fetchInviteStatus: () => void, }; @@ -24,17 +26,23 @@ class InvitePage extends React.PureComponent { } render() { - const { isPending, isFailed } = this.props; + const { isPending, isFailed, authenticated } = this.props; return ( - {isPending && } - {!isPending && isFailed && {__('Failed to retrieve invite status.')}} - {!isPending && !isFailed && ( + {!authenticated ? ( + + ) : ( - {' '} - - + {isPending && } + {!isPending && isFailed && {__('Failed to retrieve invite status.')}} + {!isPending && !isFailed && ( + + {' '} + + + + )} )}