From 39f0f97be0b057ee2af1268ed02dc799dfd9846d Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Wed, 23 Oct 2019 14:59:33 -0400 Subject: [PATCH] hide proper things on lbry.tv --- src/ui/component/button/view.jsx | 3 + .../common/form-components/form-field.jsx | 1 - src/ui/component/transactionList/view.jsx | 79 +++++++++---------- .../transactionRefreshButton/view.jsx | 2 +- src/ui/index.jsx | 2 +- src/ui/page/channels/view.jsx | 2 - src/ui/page/rewards/view.jsx | 3 +- src/ui/page/settings/view.jsx | 4 +- src/ui/scss/component/_form-field.scss | 6 +- src/ui/scss/component/_table.scss | 1 - 10 files changed, 51 insertions(+), 52 deletions(-) diff --git a/src/ui/component/button/view.jsx b/src/ui/component/button/view.jsx index 0182f1566..4220c2ef7 100644 --- a/src/ui/component/button/view.jsx +++ b/src/ui/component/button/view.jsx @@ -119,6 +119,9 @@ const Button = forwardRef((props: Props, ref: any) => { { + e.stopPropagation(); + }} to={`/$/${PAGES.AUTH}?redirect=${pathname}`} title={title} disabled={disabled} diff --git a/src/ui/component/common/form-components/form-field.jsx b/src/ui/component/common/form-components/form-field.jsx index 9e8887113..38e390a6a 100644 --- a/src/ui/component/common/form-components/form-field.jsx +++ b/src/ui/component/common/form-components/form-field.jsx @@ -23,7 +23,6 @@ type Props = { children?: React$Node, stretch?: boolean, affixClass?: string, // class applied to prefix/postfix label - firstInList?: boolean, // at the top of a list, no padding top autoFocus?: boolean, labelOnLeft: boolean, inputProps?: { diff --git a/src/ui/component/transactionList/view.jsx b/src/ui/component/transactionList/view.jsx index e072cb501..4a65bcce4 100644 --- a/src/ui/component/transactionList/view.jsx +++ b/src/ui/component/transactionList/view.jsx @@ -8,7 +8,6 @@ import { TRANSACTIONS, TX_LIST } from 'lbry-redux'; import * as PAGES from 'constants/pages'; import TransactionListTable from 'component/transactionListTable'; import RefreshTransactionButton from 'component/transactionRefreshButton'; -import Spinner from 'component/spinner'; import Paginate from 'component/common/paginate'; type Props = { @@ -44,54 +43,50 @@ function TransactionList(props: Props) {

- - {title} - {loading && } - + {title}
+ {/* @if TARGET='app' */} + {!slim && ( + + )} + {/* @endif */} + {!slim && ( + + } + > + {transactionTypes.map(tt => ( + + ))} + + )} {slim &&

- {!slim && ( -
-
- - - } - > - {transactionTypes.map(tt => ( - - ))} - -
-
- )} - {!loading && !transactions.length && ( -

{emptyMessage || __('No transactions.')}

+ {((loading && !transactions.length) || !transactions.length) && ( +

{loading ? __('Loading') : emptyMessage || __('No transactions.')}

)} {!!transactions && !!transactions.length && } diff --git a/src/ui/component/transactionRefreshButton/view.jsx b/src/ui/component/transactionRefreshButton/view.jsx index 4110552d1..c8bc539ad 100644 --- a/src/ui/component/transactionRefreshButton/view.jsx +++ b/src/ui/component/transactionRefreshButton/view.jsx @@ -38,7 +38,7 @@ class TransactionRefreshButton extends PureComponent { const { fetchingTransactions } = this.props; const { label, disabled } = this.state; return ( -