tab working
This commit is contained in:
parent
d80182f91d
commit
0df1852f5d
2 changed files with 12 additions and 10 deletions
|
@ -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);
|
||||
|
||||
// only update currency if it's being changed
|
||||
if (delta.currency) {
|
||||
newUrlParams.set('currency', delta.currency);
|
||||
}
|
||||
|
||||
switch (delta.dkey) {
|
||||
case TXO.PAGE:
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue