From fb22009ec4799a624f00c228fbd7435b44c1cbac Mon Sep 17 00:00:00 2001
From: Sebastian <sebasjm@gmail.com>
Date: Mon, 10 Jan 2022 16:04:53 -0300
Subject: deposit design from belen, feature missing: kyc

---
 .../src/popupEntryPoint.tsx                        | 30 +++++++++++++---------
 1 file changed, 18 insertions(+), 12 deletions(-)

(limited to 'packages/taler-wallet-webextension/src/popupEntryPoint.tsx')

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>
   );
 }
 
-- 
cgit v1.2.3

