more linter fixes
This commit is contained in:
parent
ca80e40cf4
commit
58a3f57b60
6 changed files with 5 additions and 120 deletions
|
@ -81,60 +81,6 @@ const WalletBalance = (props: Props) => {
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* <Card */}
|
|
||||||
{/* title={__('Subscriptions (Coming Soon)')} */}
|
|
||||||
{/* body={ */}
|
|
||||||
{/* <> */}
|
|
||||||
{/* <div className="table__wrapper"> */}
|
|
||||||
{/* <table className="table table--transactions"> */}
|
|
||||||
{/* <thead> */}
|
|
||||||
{/* <tr> */}
|
|
||||||
{/* <th className="date-header">{__('Date')}</th> */}
|
|
||||||
{/* <th>{<>{__('Receiving Channel Name')}</>}</th> */}
|
|
||||||
{/* <th>{__('Tip Location')}</th> */}
|
|
||||||
{/* <th>{__('Amount (USD)')} </th> */}
|
|
||||||
{/* <th>{__('Card Last 4')}</th> */}
|
|
||||||
{/* <th>{__('Anonymous')}</th> */}
|
|
||||||
{/* </tr> */}
|
|
||||||
{/* </thead> */}
|
|
||||||
{/* <tbody> */}
|
|
||||||
{/* {subscriptions && */}
|
|
||||||
{/* subscriptions.reverse().map((transaction) => ( */}
|
|
||||||
{/* <tr key={transaction.name + transaction.created_at}> */}
|
|
||||||
{/* <td>{moment(transaction.created_at).format('LLL')}</td> */}
|
|
||||||
{/* <td> */}
|
|
||||||
{/* <Button */}
|
|
||||||
{/* className="stripe__card-link-text" */}
|
|
||||||
{/* navigate={'/' + transaction.channel_name + ':' + transaction.channel_claim_id} */}
|
|
||||||
{/* label={transaction.channel_name} */}
|
|
||||||
{/* button="link" */}
|
|
||||||
{/* /> */}
|
|
||||||
{/* </td> */}
|
|
||||||
{/* <td> */}
|
|
||||||
{/* <Button */}
|
|
||||||
{/* className="stripe__card-link-text" */}
|
|
||||||
{/* navigate={'/' + transaction.channel_name + ':' + transaction.source_claim_id} */}
|
|
||||||
{/* label={ */}
|
|
||||||
{/* transaction.channel_claim_id === transaction.source_claim_id */}
|
|
||||||
{/* ? 'Channel Page' */}
|
|
||||||
{/* : 'Content Page' */}
|
|
||||||
{/* } */}
|
|
||||||
{/* button="link" */}
|
|
||||||
{/* /> */}
|
|
||||||
{/* </td> */}
|
|
||||||
{/* <td>${transaction.tipped_amount / 100}</td> */}
|
|
||||||
{/* <td>{lastFour}</td> */}
|
|
||||||
{/* <td>{transaction.private_tip ? 'Yes' : 'No'}</td> */}
|
|
||||||
{/* </tr> */}
|
|
||||||
{/* ))} */}
|
|
||||||
{/* </tbody> */}
|
|
||||||
{/* </table> */}
|
|
||||||
{/* {(!subscriptions || subscriptions.length === 0) && <p style={{textAlign: 'center', marginTop: '22px', fontSize: '13px', color: 'rgb(171, 171, 171)'}}>No Subscriptions</p>} */}
|
|
||||||
{/* </div> */}
|
|
||||||
{/* </> */}
|
|
||||||
{/* } */}
|
|
||||||
{/* /> */}
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
@ -2,7 +2,6 @@
|
||||||
import * as ICONS from 'constants/icons';
|
import * as ICONS from 'constants/icons';
|
||||||
import * as PAGES from 'constants/pages';
|
import * as PAGES from 'constants/pages';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import CreditAmount from 'component/common/credit-amount';
|
|
||||||
import Button from 'component/button';
|
import Button from 'component/button';
|
||||||
import Card from 'component/common/card';
|
import Card from 'component/common/card';
|
||||||
import Icon from 'component/common/icon';
|
import Icon from 'component/common/icon';
|
||||||
|
@ -17,11 +16,9 @@ const WalletBalance = (props: Props) => {
|
||||||
accountDetails,
|
accountDetails,
|
||||||
} = props;
|
} = props;
|
||||||
|
|
||||||
const [detailsExpanded, setDetailsExpanded] = React.useState(false);
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>{<Card
|
<>{<Card
|
||||||
title={<><Icon size="18" icon={ICONS.FINANCE} />{(accountDetails && (accountDetails.total_received_unpaid / 100)) || 0} USD</>}
|
title={<><Icon size={18} icon={ICONS.FINANCE} />{(accountDetails && (accountDetails.total_received_unpaid / 100)) || 0} USD</>}
|
||||||
subtitle={
|
subtitle={
|
||||||
<I18nMessage>
|
<I18nMessage>
|
||||||
This is your remaining balance that can still be withdrawn to your bank account
|
This is your remaining balance that can still be withdrawn to your bank account
|
||||||
|
|
|
@ -4,9 +4,6 @@ import * as PAGES from 'constants/pages';
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import Button from 'component/button';
|
import Button from 'component/button';
|
||||||
import Card from 'component/common/card';
|
import Card from 'component/common/card';
|
||||||
import Icon from 'component/common/icon';
|
|
||||||
import I18nMessage from 'component/i18nMessage';
|
|
||||||
import Plastic from 'react-plastic';
|
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
totalTippedAmount: number,
|
totalTippedAmount: number,
|
||||||
|
@ -17,7 +14,6 @@ type Props = {
|
||||||
const WalletBalance = (props: Props) => {
|
const WalletBalance = (props: Props) => {
|
||||||
const {
|
const {
|
||||||
// accountDetails,
|
// accountDetails,
|
||||||
totalTippedAmount,
|
|
||||||
transactions,
|
transactions,
|
||||||
} = props;
|
} = props;
|
||||||
|
|
||||||
|
|
|
@ -111,60 +111,6 @@ const WalletBalance = (props: Props) => {
|
||||||
</>
|
</>
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
{/* <Card */}
|
|
||||||
{/* title={__('Subscriptions (Coming Soon)')} */}
|
|
||||||
{/* body={ */}
|
|
||||||
{/* <> */}
|
|
||||||
{/* <div className="table__wrapper"> */}
|
|
||||||
{/* <table className="table table--transactions"> */}
|
|
||||||
{/* <thead> */}
|
|
||||||
{/* <tr> */}
|
|
||||||
{/* <th className="date-header">{__('Date')}</th> */}
|
|
||||||
{/* <th>{<>{__('Receiving Channel Name')}</>}</th> */}
|
|
||||||
{/* <th>{__('Tip Location')}</th> */}
|
|
||||||
{/* <th>{__('Amount (USD)')} </th> */}
|
|
||||||
{/* <th>{__('Card Last 4')}</th> */}
|
|
||||||
{/* <th>{__('Anonymous')}</th> */}
|
|
||||||
{/* </tr> */}
|
|
||||||
{/* </thead> */}
|
|
||||||
{/* <tbody> */}
|
|
||||||
{/* {subscriptions && */}
|
|
||||||
{/* subscriptions.reverse().map((transaction) => ( */}
|
|
||||||
{/* <tr key={transaction.name + transaction.created_at}> */}
|
|
||||||
{/* <td>{moment(transaction.created_at).format('LLL')}</td> */}
|
|
||||||
{/* <td> */}
|
|
||||||
{/* <Button */}
|
|
||||||
{/* className="stripe__card-link-text" */}
|
|
||||||
{/* navigate={'/' + transaction.channel_name + ':' + transaction.channel_claim_id} */}
|
|
||||||
{/* label={transaction.channel_name} */}
|
|
||||||
{/* button="link" */}
|
|
||||||
{/* /> */}
|
|
||||||
{/* </td> */}
|
|
||||||
{/* <td> */}
|
|
||||||
{/* <Button */}
|
|
||||||
{/* className="stripe__card-link-text" */}
|
|
||||||
{/* navigate={'/' + transaction.channel_name + ':' + transaction.source_claim_id} */}
|
|
||||||
{/* label={ */}
|
|
||||||
{/* transaction.channel_claim_id === transaction.source_claim_id */}
|
|
||||||
{/* ? 'Channel Page' */}
|
|
||||||
{/* : 'File Page' */}
|
|
||||||
{/* } */}
|
|
||||||
{/* button="link" */}
|
|
||||||
{/* /> */}
|
|
||||||
{/* </td> */}
|
|
||||||
{/* <td>${transaction.tipped_amount / 100}</td> */}
|
|
||||||
{/* <td>{lastFour}</td> */}
|
|
||||||
{/* <td>{transaction.private_tip ? 'Yes' : 'No'}</td> */}
|
|
||||||
{/* </tr> */}
|
|
||||||
{/* ))} */}
|
|
||||||
{/* </tbody> */}
|
|
||||||
{/* </table> */}
|
|
||||||
{/* {(!subscriptions || subscriptions.length === 0) && <p style={{textAlign: 'center', marginTop: '22px', fontSize: '13px', color: 'rgb(171, 171, 171)'}}>No Subscriptions</p>} */}
|
|
||||||
{/* </div> */}
|
|
||||||
{/* </> */}
|
|
||||||
{/* } */}
|
|
||||||
{/* /> */}
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
@ -360,7 +360,7 @@ class SettingsStripeCard extends React.Component<Props, State> {
|
||||||
<Page backout={{ title: pageTitle, backLabel: __('Done') }} noFooter noSideNavigation>
|
<Page backout={{ title: pageTitle, backLabel: __('Done') }} noFooter noSideNavigation>
|
||||||
<div>
|
<div>
|
||||||
{scriptFailedToLoad && (
|
{scriptFailedToLoad && (
|
||||||
<div className="error__text">There was an error connecting to Stripe. Please try again later.</div>
|
<div className="error__text">{__('There was an error connecting to Stripe. Please try again later.')}</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
// @flow
|
// @flow
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { useHistory, withRouter } from 'react-router';
|
import { useHistory } from 'react-router';
|
||||||
import WalletBalance from 'component/walletBalance';
|
import WalletBalance from 'component/walletBalance';
|
||||||
import WalletFiatBalance from 'component/walletFiatBalance';
|
import WalletFiatBalance from 'component/walletFiatBalance';
|
||||||
import WalletFiatPaymentBalance from 'component/walletFiatPaymentBalance';
|
import WalletFiatPaymentBalance from 'component/walletFiatPaymentBalance';
|
||||||
|
@ -12,9 +12,8 @@ import * as PAGES from 'constants/pages';
|
||||||
import Spinner from 'component/spinner';
|
import Spinner from 'component/spinner';
|
||||||
import YrblWalletEmpty from 'component/yrblWalletEmpty';
|
import YrblWalletEmpty from 'component/yrblWalletEmpty';
|
||||||
import { Lbryio } from 'lbryinc';
|
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 { Tabs, TabList, Tab, TabPanels, TabPanel } from 'component/common/tabs';
|
||||||
import { PAGE_VIEW_QUERY } from '../channel/view';
|
|
||||||
|
|
||||||
const TAB_QUERY = 'tab';
|
const TAB_QUERY = 'tab';
|
||||||
|
|
||||||
|
@ -207,6 +206,7 @@ const WalletPage = (props: Props) => {
|
||||||
);
|
);
|
||||||
// @endif
|
// @endif
|
||||||
// @if TARGET='app'
|
// @if TARGET='app'
|
||||||
|
// $FlowFixMe
|
||||||
// eslint-disable-next-line no-unreachable
|
// eslint-disable-next-line no-unreachable
|
||||||
return (
|
return (
|
||||||
<Page>
|
<Page>
|
||||||
|
|
Loading…
Reference in a new issue