add rewards sign in on web
This commit is contained in:
parent
850b47c34e
commit
0539e4fd67
1 changed files with 9 additions and 11 deletions
|
@ -6,6 +6,7 @@ import RewardListClaimed from 'component/rewardListClaimed';
|
||||||
import RewardTile from 'component/rewardTile';
|
import RewardTile from 'component/rewardTile';
|
||||||
import Button from 'component/button';
|
import Button from 'component/button';
|
||||||
import Page from 'component/page';
|
import Page from 'component/page';
|
||||||
|
import Card from 'component/common/card';
|
||||||
import classnames from 'classnames';
|
import classnames from 'classnames';
|
||||||
import { rewards as REWARD_TYPES } from 'lbryinc';
|
import { rewards as REWARD_TYPES } from 'lbryinc';
|
||||||
|
|
||||||
|
@ -38,22 +39,19 @@ class RewardsPage extends PureComponent<Props> {
|
||||||
if (user && !user.is_reward_approved && rewardsEnabled) {
|
if (user && !user.is_reward_approved && rewardsEnabled) {
|
||||||
if (!user.primary_email || !user.has_verified_email || !user.is_identity_verified) {
|
if (!user.primary_email || !user.has_verified_email || !user.is_identity_verified) {
|
||||||
return (
|
return (
|
||||||
!IS_WEB && (
|
<Card
|
||||||
<section className="card card--section">
|
title={__('Sign In To Unlock Rewards')}
|
||||||
<h2 className="card__title">{__('Sign In To Unlock Rewards')}</h2>
|
subtitle={__(
|
||||||
<p className="card__subtitle">
|
'This is optional. You can continue to use this app without rewards, but LBC may be needed for some tasks.'
|
||||||
{__(
|
)}
|
||||||
'This is optional. You can continue to use this app without rewards, but LBC may be needed for some tasks.'
|
actions={
|
||||||
)}
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
navigate={`/$/${PAGES.AUTH}?redirect=/$/${PAGES.REWARDS}`}
|
navigate={`/$/${PAGES.AUTH}?redirect=/$/${PAGES.REWARDS}`}
|
||||||
button="primary"
|
button="primary"
|
||||||
label={__('Unlock Rewards')}
|
label={__('Unlock Rewards')}
|
||||||
/>
|
/>
|
||||||
</section>
|
}
|
||||||
)
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
|
|
Loading…
Add table
Reference in a new issue