lbry.tv minor edits

Change copy + add unsupported message on Rewards/Transactions.
This commit is contained in:
Thomas Zarebczan 2019-04-11 12:12:00 -04:00
parent 11cd81ebd8
commit 4066bb31e5
5 changed files with 66 additions and 43 deletions

View file

@ -62,7 +62,7 @@ export default class FirstRun extends PureComponent<Props> {
<p>{__('Thanks for trying out lbry.tv')}</p> <p>{__('Thanks for trying out lbry.tv')}</p>
<p> <p>
{__( {__(
"Some things still don't work they way they are supposed to, but we are working hard to make that better." 'Some features are only available on our desktop app. We are working hard to add them here. Check back later or download the app.'
)} )}
</p> </p>
</React.Fragment> </React.Fragment>

View file

@ -2,6 +2,7 @@
// @flow // @flow
import * as icons from 'constants/icons'; import * as icons from 'constants/icons';
import * as React from 'react'; import * as React from 'react';
import classnames from 'classnames';
// @if TARGET='app' // @if TARGET='app'
import { shell } from 'electron'; import { shell } from 'electron';
// @endif // @endif
@ -160,8 +161,35 @@ class HelpPage extends React.PureComponent<Props, State> {
</div> </div>
</div> </div>
</section> </section>
<section className="card card--section"> <section className="card card--section">
<header className="card__header">
<h2 className="card__title">{__('Report a Bug or Suggest a New Feature')}</h2>
<p className="card__subtitle">
{__('Did you find something wrong? Think LBRY could add something useful and cool?')}{' '}
<Button button="link" label={__('Learn more')} href="https://lbry.com/faq/support" />.
</p>
</header>
<div className="card__content">
<div className="card__actions">
<Button
navigate="/$/report"
label={__('Submit a Bug Report/Feature Request')}
icon={icons.REPORT}
button="primary"
/>
</div>
<div className="card__meta">{__('Thanks! LBRY is made by its users.')}</div>
</div>
</section>
<section
className={classnames('card card--section', {
'card--disabled': IS_WEB,
})}
>
<header className="card__header"> <header className="card__header">
<h2 className="card__title">{__('View your Log')}</h2> <h2 className="card__title">{__('View your Log')}</h2>
@ -187,31 +215,11 @@ class HelpPage extends React.PureComponent<Props, State> {
</div> </div>
</section> </section>
<section className="card card--section"> <section
<header className="card__header"> className={classnames('card card--section', {
<h2 className="card__title">{__('Report a Bug or Suggest a New Feature')}</h2> 'card--disabled': IS_WEB,
})}
<p className="card__subtitle"> >
{__('Did you find something wrong? Think LBRY could add something useful and cool?')}{' '}
<Button button="link" label={__('Learn more')} href="https://lbry.com/faq/support" />.
</p>
</header>
<div className="card__content">
<div className="card__actions">
<Button
navigate="/$/report"
label={__('Submit a Bug Report/Feature Request')}
icon={icons.REPORT}
button="primary"
/>
</div>
<div className="card__meta">{__('Thanks! LBRY is made by its users.')}</div>
</div>
</section>
<section className="card card--section">
<header className="card__header"> <header className="card__header">
<h2 className="card__title">{__('About')}</h2> <h2 className="card__title">{__('About')}</h2>

View file

@ -8,6 +8,7 @@ import Page from 'component/page';
import classnames from 'classnames'; import classnames from 'classnames';
import type { Reward } from 'types/reward'; import type { Reward } from 'types/reward';
import { rewards as REWARD_TYPES } from 'lbryinc'; import { rewards as REWARD_TYPES } from 'lbryinc';
import UnsupportedOnWeb from 'component/common/unsupported-on-web';
type Props = { type Props = {
doAuth: () => void, doAuth: () => void,
@ -32,6 +33,7 @@ class RewardsPage extends PureComponent<Props> {
if (user && !user.is_reward_approved && daemonSettings && daemonSettings.share_usage_data) { if (user && !user.is_reward_approved && daemonSettings && daemonSettings.share_usage_data) {
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 && (
<section className="card card--section"> <section className="card card--section">
<header className="card__header"> <header className="card__header">
<h2 className="card__title">{__('Humans Only')}</h2> <h2 className="card__title">{__('Humans Only')}</h2>
@ -42,9 +44,14 @@ class RewardsPage extends PureComponent<Props> {
</header> </header>
<div className="card__content"> <div className="card__content">
<Button navigate="/$/auth?redirect=rewards" button="primary" label="Prove Humanity" /> <Button
navigate="/$/auth?redirect=rewards"
button="primary"
label="Prove Humanity"
/>
</div> </div>
</section> </section>
)
); );
} }
return ( return (
@ -162,6 +169,7 @@ class RewardsPage extends PureComponent<Props> {
render() { render() {
return ( return (
<Page> <Page>
{IS_WEB && <UnsupportedOnWeb />}
{this.renderPageHeader()} {this.renderPageHeader()}
{this.renderUnclaimedRewards()} {this.renderUnclaimedRewards()}
{<RewardListClaimed />} {<RewardListClaimed />}

View file

@ -155,7 +155,7 @@ class SettingsPage extends React.PureComponent<Props, State> {
<div className="card__title">{__('Failed to load settings.')}</div> <div className="card__title">{__('Failed to load settings.')}</div>
</section> </section>
) : ( ) : (
<div className={classnames({ 'card--disabled': IS_WEB })}> <div className={classnames({ 'card--hidden': IS_WEB })}>
<section className="card card--section"> <section className="card card--section">
<header className="card__header"> <header className="card__header">
<h2 className="card__title">{__('Download Directory')}</h2> <h2 className="card__title">{__('Download Directory')}</h2>

View file

@ -1,9 +1,11 @@
// @flow // @flow
import React from 'react'; import React from 'react';
import classnames from 'classnames';
import BusyIndicator from 'component/common/busy-indicator'; import BusyIndicator from 'component/common/busy-indicator';
import TransactionList from 'component/transactionList'; import TransactionList from 'component/transactionList';
import Page from 'component/page'; import Page from 'component/page';
import RefreshTransactionButton from 'component/transactionRefreshButton'; import RefreshTransactionButton from 'component/transactionRefreshButton';
import UnsupportedOnWeb from 'component/common/unsupported-on-web';
type Props = { type Props = {
fetchMyClaims: () => void, fetchMyClaims: () => void,
@ -25,7 +27,12 @@ class TransactionHistoryPage extends React.PureComponent<Props> {
return ( return (
<Page> <Page>
<section className="card card--section"> {IS_WEB && <UnsupportedOnWeb />}
<section
className={classnames('card card--section', {
'card--disabled': IS_WEB,
})}
>
<header className="card__header card__header--flat"> <header className="card__header card__header--flat">
<h2 className="card__title card__title--flex-between "> <h2 className="card__title card__title--flex-between ">
{__('Transaction History')} {__('Transaction History')}