diff options
author | Sebastian <sebasjm@gmail.com> | 2023-10-03 13:28:44 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-10-03 13:51:58 -0300 |
commit | 26e77181d8c1d44a27849679d35ac6ac871c1dcd (patch) | |
tree | 4e0fd063c360c02360d7faaaae52e7a787e288cb /packages/demobank-ui/src | |
parent | e84d2b6175da8c308835f1a7f27e177dcecd248a (diff) | |
download | wallet-core-26e77181d8c1d44a27849679d35ac6ac871c1dcd.tar.xz |
icon link
Diffstat (limited to 'packages/demobank-ui/src')
-rw-r--r-- | packages/demobank-ui/src/pages/BankFrame.tsx | 26 | ||||
-rw-r--r-- | packages/demobank-ui/src/settings.ts | 2 |
2 files changed, 15 insertions, 13 deletions
diff --git a/packages/demobank-ui/src/pages/BankFrame.tsx b/packages/demobank-ui/src/pages/BankFrame.tsx index fc8dfd599..6ab6ba3e4 100644 --- a/packages/demobank-ui/src/pages/BankFrame.tsx +++ b/packages/demobank-ui/src/pages/BankFrame.tsx @@ -14,19 +14,18 @@ GNU Taler; see the file COPYING. If not, see <http://www.gnu.org/licenses/> */ -import { Amounts, Logger, PaytoUriIBAN, TranslatedString, parsePaytoUri, stringifyPaytoUri } from "@gnu-taler/taler-util"; -import { NotificationMessage, notifyError, notifyException, useNotifications, useTranslationContext } from "@gnu-taler/web-util/browser"; -import { ComponentChildren, Fragment, h, VNode } from "preact"; -import { StateUpdater, useEffect, useErrorBoundary, useState } from "preact/hooks"; +import { Amounts, Logger, TranslatedString, parsePaytoUri } from "@gnu-taler/taler-util"; +import { notifyError, notifyException, useNotifications, useTranslationContext } from "@gnu-taler/web-util/browser"; +import { ComponentChildren, Fragment, VNode, h } from "preact"; +import { useEffect, useErrorBoundary, useState } from "preact/hooks"; +import logo from "../assets/logo-2021.svg"; +import { Attention } from "../components/Attention.js"; +import { CopyButton } from "../components/CopyButton.js"; import { LangSelector } from "../components/LangSelector.js"; import { useBackendContext } from "../context/backend.js"; -import { useBusinessAccountDetails } from "../hooks/circuit.js"; -import { bankUiSettings } from "../settings.js"; -import { useSettings } from "../hooks/settings.js"; -import { CopyButton, CopyIcon } from "../components/CopyButton.js"; -import logo from "../assets/logo-2021.svg"; import { useAccountDetails } from "../hooks/access.js"; -import { Attention } from "../components/Attention.js"; +import { useSettings } from "../hooks/settings.js"; +import { bankUiSettings } from "../settings.js"; import { RenderAmount } from "./PaytoWireTransferForm.js"; const GIT_HASH = typeof __GIT_HASH__ !== "undefined" ? __GIT_HASH__ : undefined; @@ -34,11 +33,12 @@ const VERSION = typeof __VERSION__ !== "undefined" ? __VERSION__ : undefined; const versionText = VERSION ? GIT_HASH - ? `Version ${VERSION} (${GIT_HASH.substring(0, 8)})` + ? <a href={`https://git.taler.net/wallet-core.git/tree/?id=${GIT_HASH}`} target="_blank" rel="noreferrer noopener"> + Version {VERSION} ({GIT_HASH.substring(0, 8)}) + </a> : VERSION : ""; -const logger = new Logger("BankFrame"); export function BankFrame({ children, @@ -83,7 +83,7 @@ export function BankFrame({ <div class="relative flex h-16 items-center justify-between "> <div class="flex items-center px-2 lg:px-0"> <div class="flex-shrink-0 bg-white rounded-lg"> - <a href="http://test.taler.net/" target="_blank" rel="noreferrer noopener"> + <a href={bankUiSettings.iconLinkURL ?? "#"}> <img class="h-8 w-auto" src={logo} diff --git a/packages/demobank-ui/src/settings.ts b/packages/demobank-ui/src/settings.ts index c4b510b30..44a016de6 100644 --- a/packages/demobank-ui/src/settings.ts +++ b/packages/demobank-ui/src/settings.ts @@ -17,6 +17,7 @@ export interface BankUiSettings { backendBaseURL?: string; allowRegistrations?: boolean; + iconLinkURL?: string; showDemoNav?: boolean; simplePasswordForRandomAccounts?: boolean; allowRandomAccountCreation?: boolean; @@ -29,6 +30,7 @@ export interface BankUiSettings { */ const defaultSettings: BankUiSettings = { backendBaseURL: "https://bank.demo.taler.net/demobanks/default/", + iconLinkURL: "https://demo.taler.net/", allowRegistrations: true, bankName: "Taler Bank", showDemoNav: true, |