From 770ab6f01dc81a16f384f314982bd761540f8e65 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Mon, 19 Dec 2022 12:11:50 -0300 Subject: build and test like other webapps --- packages/merchant-backoffice-ui/src/components/menu/SideBar.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'packages/merchant-backoffice-ui/src/components/menu/SideBar.tsx') diff --git a/packages/merchant-backoffice-ui/src/components/menu/SideBar.tsx b/packages/merchant-backoffice-ui/src/components/menu/SideBar.tsx index b96e431f8..1d15bb094 100644 --- a/packages/merchant-backoffice-ui/src/components/menu/SideBar.tsx +++ b/packages/merchant-backoffice-ui/src/components/menu/SideBar.tsx @@ -28,6 +28,9 @@ import { useInstanceKYCDetails } from "../../hooks/instance.js"; import { Translate } from "../../i18n/index.js"; import { LangSelector } from "./LangSelector.js"; +const GIT_HASH = typeof __GIT_HASH__ !== "undefined" ? __GIT_HASH__ : undefined; +const VERSION = typeof __VERSION__ !== "undefined" ? __VERSION__ : undefined; + interface Props { onLogout: () => void; mobile?: boolean; @@ -76,7 +79,7 @@ export function Sidebar({ class="is-size-7 has-text-right" style={{ lineHeight: 0, marginTop: -10 }} > - {process.env.__VERSION__} ({config.version}) + {VERSION} ({config.version}) -- cgit v1.2.3