change to @if app

This commit is contained in:
jessop 2019-08-25 16:43:44 -04:00 committed by Sean Yesmunt
parent a6d79160eb
commit 2deb6d6f16
2 changed files with 159 additions and 164 deletions

View file

@ -1,4 +1,7 @@
// @flow
/* eslint react/no-unescaped-entities:0 */
/* eslint react/jsx-no-comment-textnodes:0 */
import * as SETTINGS from 'constants/settings';
import * as PAGES from 'constants/pages';
import * as React from 'react';
@ -208,13 +211,15 @@ class SettingsPage extends React.PureComponent<Props, State> {
return (
<Page>
{noDaemonSettings && !IS_WEB ? (
// @if TARGET='app'
{noDaemonSettings ? (
<section className="card card--section">
<div className="card__title">{__('Failed to load settings.')}</div>
</section>
) : (
// @endif
<div>
{!IS_WEB && (
// @if TARGET='app'
<section className="card card--section">
<h2 className="card__title">{__('Download Directory')}</h2>
@ -229,9 +234,7 @@ class SettingsPage extends React.PureComponent<Props, State> {
<p className="help">{__('LBRY downloads will be saved here.')}</p>
</div>
</section>
)}
{!IS_WEB && (
// @endif // @if TARGET='app'
<section className="card card--section">
<h2 className="card__title">{__('Network and Data Settings')}</h2>
<Form>
@ -262,8 +265,7 @@ class SettingsPage extends React.PureComponent<Props, State> {
/>
</Form>
</section>
)}
// @endif
<section className="card card--section">
<header className="card__header">
<h2 className="card__title">{__('Max Purchase Price')}</h2>
@ -304,7 +306,6 @@ class SettingsPage extends React.PureComponent<Props, State> {
</p>
</Form>
</section>
<section className="card card--section">
<h2 className="card__title">{__('Purchase Confirmations')}</h2>
@ -342,7 +343,6 @@ class SettingsPage extends React.PureComponent<Props, State> {
</p>
</Form>
</section>
<section className="card card--section">
<h2 className="card__title">{__('Content Settings')}</h2>
<FormField
@ -379,7 +379,6 @@ class SettingsPage extends React.PureComponent<Props, State> {
)}
/>
</section>
<section className="card card--section">
<h2 className="card__title">{__('Blocked Channels')}</h2>
<p className="card__subtitle card__help ">
@ -389,7 +388,7 @@ class SettingsPage extends React.PureComponent<Props, State> {
<Button button="link" label={__('Manage')} navigate={`/$/${PAGES.BLOCKED}`} />
</p>
</section>
{!IS_WEB && (
// @if TARGET='app'
<section className="card card--section">
<h2 className="card__title">{__('Notifications')}</h2>
<Form>
@ -403,8 +402,7 @@ class SettingsPage extends React.PureComponent<Props, State> {
/>
</Form>
</section>
)}
// @endif
<section className="card card--section">
<h2 className="card__title">{__('Share Diagnostic Data')}</h2>
@ -424,7 +422,6 @@ class SettingsPage extends React.PureComponent<Props, State> {
/>
</Form>
</section>
<section className="card card--section">
<h2 className="card__title">{__('Appearance')}</h2>
@ -486,7 +483,7 @@ class SettingsPage extends React.PureComponent<Props, State> {
</fieldset-section>
</Form>
</section>
{!IS_WEB && (
// @if TARGET='app'
<section className="card card--section">
<h2 className="card__title">{__('Wallet Security')}</h2>
@ -515,8 +512,7 @@ class SettingsPage extends React.PureComponent<Props, State> {
/>
</Form>
</section>
)}
{!IS_WEB && (
// @endif // @if TARGET='app'
<section className="card card--section">
<h2 className="card__title">{__('Experimental Settings')}</h2>
@ -589,7 +585,7 @@ class SettingsPage extends React.PureComponent<Props, State> {
</fieldset-section>
</Form>
</section>
)}
// @endif
<section className="card card--section">
<h2 className="card__title">{__('Application Cache')}</h2>

View file

@ -6755,11 +6755,10 @@ lazy-val@^1.0.3, lazy-val@^1.0.4:
yargs "^13.2.2"
zstd-codec "^0.1.1"
lbry-redux@lbryio/lbry-redux#1af092ce2cb507d9a41711b864874c0bd76935ae:
lbry-redux@lbryio/lbry-redux#f4413a8ab4928a9487274568bb72e440c45875be:
version "0.0.1"
resolved "https://codeload.github.com/lbryio/lbry-redux/tar.gz/1af092ce2cb507d9a41711b864874c0bd76935ae"
resolved "https://codeload.github.com/lbryio/lbry-redux/tar.gz/f4413a8ab4928a9487274568bb72e440c45875be"
dependencies:
mime "^2.4.4"
proxy-polyfill "0.1.6"
reselect "^3.0.0"
uuid "^3.3.2"