From 1d4815c66c395f4fcc86c30e20f3d005e3cb9ff5 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 15 Nov 2021 11:18:58 -0300 Subject: prettier --- .../src/walletEntryPoint.tsx | 128 +++++++++++++-------- 1 file changed, 80 insertions(+), 48 deletions(-) (limited to 'packages/taler-wallet-webextension/src/walletEntryPoint.tsx') diff --git a/packages/taler-wallet-webextension/src/walletEntryPoint.tsx b/packages/taler-wallet-webextension/src/walletEntryPoint.tsx index 023ee94c5..f097d58b5 100644 --- a/packages/taler-wallet-webextension/src/walletEntryPoint.tsx +++ b/packages/taler-wallet-webextension/src/walletEntryPoint.tsx @@ -21,7 +21,7 @@ */ import { setupI18n } from "@gnu-taler/taler-util"; -import { createHashHistory } from 'history'; +import { createHashHistory } from "history"; import { Fragment, h, render } from "preact"; import Router, { route, Route } from "preact-router"; import { useEffect } from "preact/hooks"; @@ -29,22 +29,19 @@ import { LogoHeader } from "./components/LogoHeader"; import { DevContextProvider } from "./context/devContext"; import { PayPage } from "./cta/Pay"; import { RefundPage } from "./cta/Refund"; -import { TipPage } from './cta/Tip'; +import { TipPage } from "./cta/Tip"; import { WithdrawPage } from "./cta/Withdraw"; import { strings } from "./i18n/strings"; -import { - Pages, WalletNavBar -} from "./NavigationBar"; +import { Pages, WalletNavBar } from "./NavigationBar"; import { BalancePage } from "./wallet/BalancePage"; import { HistoryPage } from "./wallet/History"; import { SettingsPage } from "./wallet/Settings"; -import { TransactionPage } from './wallet/Transaction'; +import { TransactionPage } from "./wallet/Transaction"; import { WelcomePage } from "./wallet/Welcome"; -import { BackupPage } from './wallet/BackupPage'; +import { BackupPage } from "./wallet/BackupPage"; import { DeveloperPage } from "./popup/Debug.js"; import { ManualWithdrawPage } from "./wallet/ManualWithdrawPage.js"; - function main(): void { try { const container = document.getElementById("container"); @@ -69,51 +66,86 @@ if (document.readyState === "loading") { } function withLogoAndNavBar(Component: any) { - return (props: any) => - - - - + return (props: any) => ( + + + + + + ); } function Application() { - return
- - - - - - - - route(Pages.manual_withdraw)} - /> - - - - - -
no yet implemented
} /> -
no yet implemented
} /> -
no yet implemented
} /> - - - - {/** call to action */} - - - - - - -
-
-
+ return ( +
+ + + + + + + route(Pages.manual_withdraw)} + /> + + + + + +
no yet implemented
} + /> +
no yet implemented
} + /> +
no yet implemented
} + /> + + + + {/** call to action */} + + + + + + +
+
+
+ ); } function Redirect({ to }: { to: string }): null { useEffect(() => { - route(to, true) - }) - return null + route(to, true); + }); + return null; } -- cgit v1.2.3