From b195b1f787a336cd3c9eee3af8e04f7c2e010c6e Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Thu, 30 Oct 2025 17:52:13 +0100 Subject: [PATCH 1/2] added app download show/hide env value --- .env | 3 +++ .env.development | 3 +++ .env.production | 5 +++- src/component/auth/AuthFooter.jsx | 38 +++++++++++++++++-------------- 4 files changed, 31 insertions(+), 18 deletions(-) diff --git a/.env b/.env index 49253e1..9436530 100644 --- a/.env +++ b/.env @@ -16,3 +16,6 @@ REACT_APP_TERMS_LINK='https://qa-www.mermsemr.com/terms' # Inactivity timeout/logout AT 10MINS REACT_APP_TIMEOUT=600000 +# show download button +REACT_APP_SHOW_DOWNLOAD=100 + diff --git a/.env.development b/.env.development index 23286b1..9334e54 100644 --- a/.env.development +++ b/.env.development @@ -17,3 +17,6 @@ REACT_APP_TERMS_LINK='https://qa-www.mermsemr.com/terms' # Inactivity timeout/logout AT 10MINS REACT_APP_TIMEOUT=600000 +# show download button +REACT_APP_SHOW_DOWNLOAD=100 + diff --git a/.env.production b/.env.production index 612969b..658df64 100644 --- a/.env.production +++ b/.env.production @@ -14,4 +14,7 @@ REACT_APP_CONTACTS_LINK='https://www.mermsemr.com/contacts' REACT_APP_TERMS_LINK='https://www.mermsemr.com/terms' # Inactivity timeout/logout AT 10MINS -REACT_APP_TIMEOUT=600000 \ No newline at end of file +REACT_APP_TIMEOUT=600000 + +# show download button +REACT_APP_SHOW_DOWNLOAD=100 \ No newline at end of file diff --git a/src/component/auth/AuthFooter.jsx b/src/component/auth/AuthFooter.jsx index 3b1bfc6..04eb5e8 100644 --- a/src/component/auth/AuthFooter.jsx +++ b/src/component/auth/AuthFooter.jsx @@ -5,27 +5,31 @@ import IOSDownload from '../../assets/img/download/apple.jpg' export default function AuthFooter() { return (
-
-
-
-
-
-
- - IOS Download - -
+ {Number(process.env.REACT_APP_SHOW_DOWNLOAD) == 100 && + <> +
+
+
+
+
+ + IOS Download + +
+
-
-
- - IOS Download - +
+
+ + IOS Download + +
-
+ + }
Home From 30540e46bad7bc32d80f25482ba6fc5f121163af Mon Sep 17 00:00:00 2001 From: victorAnumudu Date: Thu, 30 Oct 2025 17:53:16 +0100 Subject: [PATCH 2/2] added app download show/hide env value --- .env | 2 +- .env.development | 2 +- .env.production | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.env b/.env index 9436530..9e7a34d 100644 --- a/.env +++ b/.env @@ -17,5 +17,5 @@ REACT_APP_TERMS_LINK='https://qa-www.mermsemr.com/terms' REACT_APP_TIMEOUT=600000 # show download button -REACT_APP_SHOW_DOWNLOAD=100 +REACT_APP_SHOW_DOWNLOAD=0 diff --git a/.env.development b/.env.development index 9334e54..97940b1 100644 --- a/.env.development +++ b/.env.development @@ -18,5 +18,5 @@ REACT_APP_TERMS_LINK='https://qa-www.mermsemr.com/terms' REACT_APP_TIMEOUT=600000 # show download button -REACT_APP_SHOW_DOWNLOAD=100 +REACT_APP_SHOW_DOWNLOAD=0 diff --git a/.env.production b/.env.production index 658df64..4c4d90f 100644 --- a/.env.production +++ b/.env.production @@ -17,4 +17,4 @@ REACT_APP_TERMS_LINK='https://www.mermsemr.com/terms' REACT_APP_TIMEOUT=600000 # show download button -REACT_APP_SHOW_DOWNLOAD=100 \ No newline at end of file +REACT_APP_SHOW_DOWNLOAD=0 \ No newline at end of file