From 88492b91d7fdef2265ebb928b2651f17e8e1cc95 Mon Sep 17 00:00:00 2001 From: Andy Date: Wed, 7 Jun 2023 14:02:33 +0200 Subject: [PATCH] 1012: add version info to navigation header --- administration/.env.development | 1 + administration/.env.production | 1 + administration/src/bp-modules/NavigationBar.tsx | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/administration/.env.development b/administration/.env.development index 2cd256f2e..1ae99b01c 100644 --- a/administration/.env.development +++ b/administration/.env.development @@ -1 +1,2 @@ REACT_APP_API_BASE_URL=http://localhost:8000 +REACT_APP_VERSION=$npm_package_version diff --git a/administration/.env.production b/administration/.env.production index ab316e0f1..cf5456338 100644 --- a/administration/.env.production +++ b/administration/.env.production @@ -1 +1,2 @@ REACT_APP_API_BASE_URL=https://api.entitlementcard.app +REACT_APP_VERSION=$npm_package_version diff --git a/administration/src/bp-modules/NavigationBar.tsx b/administration/src/bp-modules/NavigationBar.tsx index 4996d8d8c..668b3b173 100644 --- a/administration/src/bp-modules/NavigationBar.tsx +++ b/administration/src/bp-modules/NavigationBar.tsx @@ -33,7 +33,7 @@ const Navigation = (props: Props) => {
{config.name} Verwaltung
{!region ? null : ( - {region.prefix} {region.name} + {region.prefix} {region.name} {`(${process.env.REACT_APP_VERSION})`} )}