Add settings link
This commit is contained in:
parent
b56982d3b2
commit
9e32f655b9
1 changed files with 5 additions and 3 deletions
|
@ -78,15 +78,17 @@ class RewardsPage extends React.PureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
renderUnclaimedRewards() {
|
renderUnclaimedRewards() {
|
||||||
const { fetching, rewards, user, daemonSettings } = this.props;
|
const { fetching, rewards, user, daemonSettings, navigate } = this.props;
|
||||||
|
|
||||||
if (!daemonSettings.share_usage_data) {
|
if (!daemonSettings.share_usage_data) {
|
||||||
return (
|
return (
|
||||||
<div className="card__content empty">
|
<div className="card__content empty">
|
||||||
<p>
|
<p>
|
||||||
{__(
|
{__(
|
||||||
'Rewards are currently disabled for your account. Turn on diagnostic data sharing, in Settings, in order to re-enable them.'
|
'Rewards are currently disabled for your account. Turn on diagnostic data sharing, in'
|
||||||
)}
|
)}{' '}
|
||||||
|
<Link onClick={() => navigate('/settings')} label="Settings" />
|
||||||
|
{__(', in order to re-enable them.')}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue