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, 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:

View file

@ -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>