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,
|
active,
|
||||||
type,
|
type,
|
||||||
subtype,
|
subtype,
|
||||||
currency
|
currency,
|
||||||
};
|
};
|
||||||
|
|
||||||
const hideStatus =
|
const hideStatus =
|
||||||
|
@ -125,13 +125,14 @@ function TxoList(props: Props) {
|
||||||
// let currency = 'credits';
|
// let currency = 'credits';
|
||||||
function updateUrl(delta: Delta) {
|
function updateUrl(delta: Delta) {
|
||||||
const newUrlParams = new URLSearchParams();
|
const newUrlParams = new URLSearchParams();
|
||||||
// if (delta.currency) {
|
|
||||||
// currency = delta.currency;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// set tab name to account for wallet page tab
|
// set tab name to account for wallet page tab
|
||||||
newUrlParams.set('tab', delta.tab);
|
newUrlParams.set('tab', delta.tab);
|
||||||
|
|
||||||
|
// only update currency if it's being changed
|
||||||
|
if (delta.currency) {
|
||||||
newUrlParams.set('currency', delta.currency);
|
newUrlParams.set('currency', delta.currency);
|
||||||
|
}
|
||||||
|
|
||||||
switch (delta.dkey) {
|
switch (delta.dkey) {
|
||||||
case TXO.PAGE:
|
case TXO.PAGE:
|
||||||
|
|
|
@ -196,14 +196,15 @@ const WalletPage = (props: Props) => {
|
||||||
</TabPanel>
|
</TabPanel>
|
||||||
<TabPanel>
|
<TabPanel>
|
||||||
<div className="section card-stack">
|
<div className="section card-stack">
|
||||||
|
<WalletFiatPaymentHistory transactions={customerTransactions} />
|
||||||
<WalletFiatAccountHistory transactions={accountTransactionResponse} />
|
<WalletFiatAccountHistory transactions={accountTransactionResponse} />
|
||||||
</div>
|
</div>
|
||||||
</TabPanel>
|
</TabPanel>
|
||||||
{/*<TabPanel>*/}
|
<TabPanel>
|
||||||
{/* <div className="section card-stack">*/}
|
<div className="section card-stack">
|
||||||
{/* <WalletFiatPaymentHistory transactions={customerTransactions} />*/}
|
<WalletFiatPaymentHistory transactions={customerTransactions} />
|
||||||
{/* </div>*/}
|
</div>
|
||||||
{/*</TabPanel>*/}
|
</TabPanel>
|
||||||
</TabPanels>
|
</TabPanels>
|
||||||
</Tabs>
|
</Tabs>
|
||||||
</Page>
|
</Page>
|
||||||
|
|
Loading…
Reference in a new issue