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

View file

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

View file

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

View file

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