diff options
author | Sebastian <sebasjm@gmail.com> | 2023-04-26 14:54:07 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2023-04-26 14:54:07 -0300 |
commit | 7c04fbd806998fc4fa2690ff8d462542375c4d78 (patch) | |
tree | 004f3c09e5b28c18b492b0e4959ec1f9e43cc123 /packages/demobank-ui/src/pages/BankFrame.tsx | |
parent | 93e8010b5a30a0d4b61fb3e0c06c8eb602e30f2f (diff) | |
download | wallet-core-7c04fbd806998fc4fa2690ff8d462542375c4d78.tar.xz |
add version text
Diffstat (limited to 'packages/demobank-ui/src/pages/BankFrame.tsx')
-rw-r--r-- | packages/demobank-ui/src/pages/BankFrame.tsx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/packages/demobank-ui/src/pages/BankFrame.tsx b/packages/demobank-ui/src/pages/BankFrame.tsx index d8942a8e7..b1f3a7c5a 100644 --- a/packages/demobank-ui/src/pages/BankFrame.tsx +++ b/packages/demobank-ui/src/pages/BankFrame.tsx @@ -27,6 +27,14 @@ import { useSettings } from "../hooks/settings.js"; import { ErrorMessage, onNotificationUpdate } from "../hooks/notification.js"; const IS_PUBLIC_ACCOUNT_ENABLED = false; +const GIT_HASH = typeof __GIT_HASH__ !== "undefined" ? __GIT_HASH__ : undefined; +const VERSION = typeof __VERSION__ !== "undefined" ? __VERSION__ : undefined; + +const versionText = VERSION + ? GIT_HASH + ? `Version ${VERSION} (${GIT_HASH.substring(0, 8)})` + : VERSION + : ""; const logger = new Logger("BankFrame"); @@ -156,7 +164,9 @@ export function BankFrame({ </p> </div> <div style="flex-grow:1" /> - <p>Copyright © 2014—2022 Taler Systems SA</p> + <p> + Copyright © 2014—2022 Taler Systems SA. {versionText} + </p> </div> </section> </Fragment> |