diff options
author | Sebastian <sebasjm@gmail.com> | 2022-01-10 16:04:53 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2022-01-10 16:07:27 -0300 |
commit | fb22009ec4799a624f00c228fbd7435b44c1cbac (patch) | |
tree | b1f8427e845bb3687b8a64deb3545eff2290ec67 /packages/taler-wallet-webextension/src/popupEntryPoint.tsx | |
parent | 83b9d32b7812e63640a60b5b42a27c96d8053bce (diff) | |
download | wallet-core-fb22009ec4799a624f00c228fbd7435b44c1cbac.tar.xz |
deposit design from belen, feature missing: kyc
Diffstat (limited to 'packages/taler-wallet-webextension/src/popupEntryPoint.tsx')
-rw-r--r-- | packages/taler-wallet-webextension/src/popupEntryPoint.tsx | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/packages/taler-wallet-webextension/src/popupEntryPoint.tsx b/packages/taler-wallet-webextension/src/popupEntryPoint.tsx index 27372db5e..908349e89 100644 --- a/packages/taler-wallet-webextension/src/popupEntryPoint.tsx +++ b/packages/taler-wallet-webextension/src/popupEntryPoint.tsx @@ -33,13 +33,13 @@ import { Pages, WalletNavBar } from "./NavigationBar"; import { BackupPage } from "./wallet/BackupPage"; import { BalancePage } from "./popup/BalancePage"; import { DeveloperPage } from "./popup/DeveloperPage"; -import { HistoryPage } from "./popup/History"; import { ProviderAddPage } from "./wallet/ProviderAddPage"; import { ProviderDetailPage } from "./wallet/ProviderDetailPage"; import { SettingsPage } from "./popup/Settings"; import { TalerActionFound } from "./popup/TalerActionFound"; import { ExchangeAddPage } from "./wallet/ExchangeAddPage"; import { IoCProviderForRuntime } from "./context/iocContext"; +import { LastActivityPage } from "./wallet/LastActivityPage"; function main(): void { try { @@ -77,12 +77,13 @@ function CheckTalerActionComponent(): VNode { function Application() { return ( - <div> - <DevContextProvider> + // <div> + <DevContextProvider> + {({ devMode }: { devMode: boolean }) => ( <IoCProviderForRuntime> - <WalletNavBar /> + <WalletNavBar devMode={devMode} /> <CheckTalerActionComponent /> - <PopupBox> + <PopupBox devMode={devMode}> <Router history={createHashHistory()}> <Route path={Pages.dev} component={DeveloperPage} /> @@ -90,10 +91,14 @@ function Application() { path={Pages.balance} component={BalancePage} goToWalletManualWithdraw={() => - goToWalletPage(Pages.manual_withdraw) + goToWalletPage( + Pages.manual_withdraw.replace(":currency?", ""), + ) } - goToWalletDeposit={(currency: string) => - goToWalletPage(Pages.deposit.replace(":currency", currency)) + goToWalletHistory={(currency: string) => + goToWalletPage( + Pages.balance_history.replace(":currency", currency), + ) } /> <Route path={Pages.settings} component={SettingsPage} /> @@ -114,6 +119,8 @@ function Application() { }} /> + <Route path={Pages.last_activity} component={LastActivityPage} /> + <Route path={Pages.transaction} component={({ tid }: { tid: string }) => @@ -121,8 +128,6 @@ function Application() { } /> - <Route path={Pages.history} component={HistoryPage} /> - <Route path={Pages.backup} component={BackupPage} @@ -157,8 +162,9 @@ function Application() { </Router> </PopupBox> </IoCProviderForRuntime> - </DevContextProvider> - </div> + )} + </DevContextProvider> + // </div> ); } |