From 58a3f57b6027891462b7a0f66cae6d50da85d5f8 Mon Sep 17 00:00:00 2001 From: Anthony Date: Fri, 13 Aug 2021 19:04:57 +0200 Subject: [PATCH] more linter fixes --- .../walletFiatAccountHistory/view.jsx | 54 ------------------- ui/component/walletFiatBalance/view.jsx | 5 +- .../walletFiatPaymentBalance/view.jsx | 4 -- .../walletFiatPaymentHistory/view.jsx | 54 ------------------- ui/page/settingsStripeCard/view.jsx | 2 +- ui/page/wallet/view.jsx | 6 +-- 6 files changed, 5 insertions(+), 120 deletions(-) diff --git a/ui/component/walletFiatAccountHistory/view.jsx b/ui/component/walletFiatAccountHistory/view.jsx index 1bac35b8b..49b1ff299 100644 --- a/ui/component/walletFiatAccountHistory/view.jsx +++ b/ui/component/walletFiatAccountHistory/view.jsx @@ -81,60 +81,6 @@ const WalletBalance = (props: Props) => { )} /> - - {/* */} - {/*
*/} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* {subscriptions && */} - {/* subscriptions.reverse().map((transaction) => ( */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* ))} */} - {/* */} - {/*
{__('Date')}{<>{__('Receiving Channel Name')}}{__('Tip Location')}{__('Amount (USD)')} {__('Card Last 4')}{__('Anonymous')}
{moment(transaction.created_at).format('LLL')} */} - {/* */} - {/* ${transaction.tipped_amount / 100}{lastFour}{transaction.private_tip ? 'Yes' : 'No'}
*/} - {/* {(!subscriptions || subscriptions.length === 0) &&

No Subscriptions

} */} - {/*
*/} - {/* */} - {/* } */} - {/* /> */} ); }; diff --git a/ui/component/walletFiatBalance/view.jsx b/ui/component/walletFiatBalance/view.jsx index 377994476..b29dcf202 100644 --- a/ui/component/walletFiatBalance/view.jsx +++ b/ui/component/walletFiatBalance/view.jsx @@ -2,7 +2,6 @@ import * as ICONS from 'constants/icons'; import * as PAGES from 'constants/pages'; import React from 'react'; -import CreditAmount from 'component/common/credit-amount'; import Button from 'component/button'; import Card from 'component/common/card'; import Icon from 'component/common/icon'; @@ -17,11 +16,9 @@ const WalletBalance = (props: Props) => { accountDetails, } = props; - const [detailsExpanded, setDetailsExpanded] = React.useState(false); - return ( <>{{(accountDetails && (accountDetails.total_received_unpaid / 100)) || 0} USD} + title={<>{(accountDetails && (accountDetails.total_received_unpaid / 100)) || 0} USD} subtitle={ This is your remaining balance that can still be withdrawn to your bank account diff --git a/ui/component/walletFiatPaymentBalance/view.jsx b/ui/component/walletFiatPaymentBalance/view.jsx index dfd708b9a..fa838eaa1 100644 --- a/ui/component/walletFiatPaymentBalance/view.jsx +++ b/ui/component/walletFiatPaymentBalance/view.jsx @@ -4,9 +4,6 @@ import * as PAGES from 'constants/pages'; import React from 'react'; import Button from 'component/button'; import Card from 'component/common/card'; -import Icon from 'component/common/icon'; -import I18nMessage from 'component/i18nMessage'; -import Plastic from 'react-plastic'; type Props = { totalTippedAmount: number, @@ -17,7 +14,6 @@ type Props = { const WalletBalance = (props: Props) => { const { // accountDetails, - totalTippedAmount, transactions, } = props; diff --git a/ui/component/walletFiatPaymentHistory/view.jsx b/ui/component/walletFiatPaymentHistory/view.jsx index f1f0ae011..da2e3dc96 100644 --- a/ui/component/walletFiatPaymentHistory/view.jsx +++ b/ui/component/walletFiatPaymentHistory/view.jsx @@ -111,60 +111,6 @@ const WalletBalance = (props: Props) => { } /> - - {/* */} - {/*
*/} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* {subscriptions && */} - {/* subscriptions.reverse().map((transaction) => ( */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* */} - {/* ))} */} - {/* */} - {/*
{__('Date')}{<>{__('Receiving Channel Name')}}{__('Tip Location')}{__('Amount (USD)')} {__('Card Last 4')}{__('Anonymous')}
{moment(transaction.created_at).format('LLL')} */} - {/* */} - {/* ${transaction.tipped_amount / 100}{lastFour}{transaction.private_tip ? 'Yes' : 'No'}
*/} - {/* {(!subscriptions || subscriptions.length === 0) &&

No Subscriptions

} */} - {/*
*/} - {/* */} - {/* } */} - {/* /> */} ); }; diff --git a/ui/page/settingsStripeCard/view.jsx b/ui/page/settingsStripeCard/view.jsx index 52dcd8d4e..62e222874 100644 --- a/ui/page/settingsStripeCard/view.jsx +++ b/ui/page/settingsStripeCard/view.jsx @@ -360,7 +360,7 @@ class SettingsStripeCard extends React.Component {
{scriptFailedToLoad && ( -
There was an error connecting to Stripe. Please try again later.
+
{__('There was an error connecting to Stripe. Please try again later.')}
)}
diff --git a/ui/page/wallet/view.jsx b/ui/page/wallet/view.jsx index 811fdedf8..50d8a7c34 100644 --- a/ui/page/wallet/view.jsx +++ b/ui/page/wallet/view.jsx @@ -1,6 +1,6 @@ // @flow import React from 'react'; -import { useHistory, withRouter } from 'react-router'; +import { useHistory } from 'react-router'; import WalletBalance from 'component/walletBalance'; import WalletFiatBalance from 'component/walletFiatBalance'; import WalletFiatPaymentBalance from 'component/walletFiatPaymentBalance'; @@ -12,9 +12,8 @@ import * as PAGES from 'constants/pages'; import Spinner from 'component/spinner'; import YrblWalletEmpty from 'component/yrblWalletEmpty'; import { Lbryio } from 'lbryinc'; -import { SIMPLE_SITE, STRIPE_PUBLIC_KEY } from 'config'; +import { STRIPE_PUBLIC_KEY } from 'config'; import { Tabs, TabList, Tab, TabPanels, TabPanel } from 'component/common/tabs'; -import { PAGE_VIEW_QUERY } from '../channel/view'; const TAB_QUERY = 'tab'; @@ -207,6 +206,7 @@ const WalletPage = (props: Props) => { ); // @endif // @if TARGET='app' + // $FlowFixMe // eslint-disable-next-line no-unreachable return (