almost ready for refactor

This commit is contained in:
Anthony 2021-08-19 17:11:51 +02:00
parent 32e8672be5
commit 815799a389
No known key found for this signature in database
GPG key ID: C386D3C93D50E356
4 changed files with 181 additions and 198 deletions

View file

@ -373,6 +373,7 @@ function TxoList(props: Props) {
</div>
// fiat section
: <div>
<div className="section card-stack">
<div className="card__body-actions">
<div className="card__actions">
{/*<div>*/}
@ -458,6 +459,7 @@ function TxoList(props: Props) {
{ fiatType === 'outgoing' && <WalletFiatPaymentHistory transactions={[]} /> }
<Paginate totalPages={Math.ceil(txoItemCount / Number(pageSize))} />
</div>
</div>
}
/>

View file

@ -26,10 +26,6 @@ const WalletBalance = (props: Props) => {
}
return (
<><Card
title={'Tip History'}
body={(
<>
<div className="table__wrapper">
<table className="table table--transactions">
<thead>
@ -78,10 +74,7 @@ const WalletBalance = (props: Props) => {
</table>
{!accountTransactions && <p style={{textAlign: 'center', marginTop: '20px', fontSize: '13px', color: 'rgb(171, 171, 171)'}}>No Transactions</p>}
</div>
</>
)}
/>
</>
);
};

View file

@ -53,9 +53,6 @@ const WalletBalance = (props: Props) => {
return (
<>
<div className="section card-stack">
<Card
body={
<>
<div className="table__wrapper">
<table className="table table--transactions">
<thead>
@ -102,9 +99,6 @@ const WalletBalance = (props: Props) => {
</table>
{(!accountTransactions || accountTransactions.length === 0) && <p style={{textAlign: 'center', marginTop: '20px', fontSize: '13px', color: 'rgb(171, 171, 171)'}}>No Transactions</p>}
</div>
</>
}
/>
</div>
</>
);

View file

@ -164,7 +164,7 @@ const WalletPage = (props: Props) => {
<Tab>{__('Balance')}</Tab>
<Tab>{__('Transactions')}</Tab>
<Tab>{__('Subscriptions')}</Tab>
<Tab>{__('Analytics')}</Tab>
{/*<Tab>{__('Analytics')}</Tab>*/}
</TabList>
<TabPanels>
<TabPanel>
@ -196,13 +196,7 @@ const WalletPage = (props: Props) => {
</TabPanel>
<TabPanel>
<div className="section card-stack">
<WalletFiatPaymentHistory transactions={customerTransactions} />
<WalletFiatAccountHistory transactions={accountTransactionResponse} />
</div>
</TabPanel>
<TabPanel>
<div className="section card-stack">
<WalletFiatPaymentHistory transactions={customerTransactions} />
<h1> Coming soon! </h1>
</div>
</TabPanel>
</TabPanels>