tab working

This commit is contained in:
Anthony 2021-08-19 13:29:10 +02:00
parent d80182f91d
commit 0df1852f5d
No known key found for this signature in database
GPG key ID: C386D3C93D50E356
2 changed files with 12 additions and 10 deletions

View file

@ -60,7 +60,7 @@ function TxoList(props: Props) {
active,
type,
subtype,
currency
currency,
};
const hideStatus =
@ -125,13 +125,14 @@ function TxoList(props: Props) {
// let currency = 'credits';
function updateUrl(delta: Delta) {
const newUrlParams = new URLSearchParams();
// if (delta.currency) {
// currency = delta.currency;
// }
// set tab name to account for wallet page tab
newUrlParams.set('tab', delta.tab);
newUrlParams.set('currency', delta.currency);
// only update currency if it's being changed
if (delta.currency) {
newUrlParams.set('currency', delta.currency);
}
switch (delta.dkey) {
case TXO.PAGE:

View file

@ -196,14 +196,15 @@ 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} />*/}
{/* </div>*/}
{/*</TabPanel>*/}
<TabPanel>
<div className="section card-stack">
<WalletFiatPaymentHistory transactions={customerTransactions} />
</div>
</TabPanel>
</TabPanels>
</Tabs>
</Page>