diff options
author | Sebastian <sebasjm@gmail.com> | 2022-03-25 17:06:38 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-03-25 17:06:38 -0300 |
commit | e89821a6c7f5b740ab5781354149dd2cc2b4047c (patch) | |
tree | b26ab5c661900f22f901646eb439d3cc9ae9c5e8 /packages/taler-wallet-webextension/src/wallet | |
parent | ddfb40e50cef0abddc7690b23562b1ca5aeb3fdd (diff) | |
download | wallet-core-e89821a6c7f5b740ab5781354149dd2cc2b4047c.tar.xz |
show pending operations on main pages
Diffstat (limited to 'packages/taler-wallet-webextension/src/wallet')
-rw-r--r-- | packages/taler-wallet-webextension/src/wallet/Application.tsx | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/packages/taler-wallet-webextension/src/wallet/Application.tsx b/packages/taler-wallet-webextension/src/wallet/Application.tsx index 2116b500e..88a84d960 100644 --- a/packages/taler-wallet-webextension/src/wallet/Application.tsx +++ b/packages/taler-wallet-webextension/src/wallet/Application.tsx @@ -83,19 +83,21 @@ export function Application(): VNode { <Fragment> <LogoHeader /> <WalletNavBar path={path} /> - <div - style={{ - backgroundColor: "lightcyan", - display: "flex", - justifyContent: "center", - }} - > - <PendingTransactions - goToTransaction={(txId: string) => - route(Pages.balance_transaction.replace(":tid", txId)) - } - /> - </div> + {shouldShowPendingOperations(path) && ( + <div + style={{ + backgroundColor: "lightcyan", + display: "flex", + justifyContent: "center", + }} + > + <PendingTransactions + goToTransaction={(txId: string) => + route(Pages.balance_transaction.replace(":tid", txId)) + } + /> + </div> + )} </Fragment> ); }} @@ -261,3 +263,7 @@ function Redirect({ to }: { to: string }): null { }); return null; } + +function shouldShowPendingOperations(path: string): boolean { + return ["/balance/history/", "/dev", "/settings", "/backup"].includes(path); +} |