From e6ba42afcd90c48bf565c736dd008b3d23049d2e Mon Sep 17 00:00:00 2001 From: Chukwumdiebube Date: Sat, 4 Feb 2023 06:28:15 +0100 Subject: [PATCH] env variables created --- .env | 5 ++++- src/components/Partials/MobileSideBar.jsx | 5 ++--- src/components/Partials/Sidebar.jsx | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.env b/.env index 16407ac..5761c51 100755 --- a/.env +++ b/.env @@ -11,4 +11,7 @@ REACT_APP_AUX_ENDPOINT = "https://devapi.mermsemr.com/en/desktop/api/v2/myfit" REACT_APP_USERS_ENDPOINT = "https://devapi.mermsemr.com/en/desktop/api/v2/myfituser" # REACT_APP_PASSWORD_ENDPOINT = "https://devapi.mermsemr.com/en/desktop/api/v2/myfituser/resetpass" -REACT_APP_SESSION_EXPIRE_MINUTES = 5 \ No newline at end of file +REACT_APP_SESSION_EXPIRE_MINUTES = 5 + +REACT_APP_TRACKING = "Tracking" +REACT_APP_RESOURCES = "Resources" \ No newline at end of file diff --git a/src/components/Partials/MobileSideBar.jsx b/src/components/Partials/MobileSideBar.jsx index 87a8c09..57c2cb2 100755 --- a/src/components/Partials/MobileSideBar.jsx +++ b/src/components/Partials/MobileSideBar.jsx @@ -111,8 +111,7 @@ export default function MobileSidebar({ sidebar, action, logoutModalHandler }) { - Tracking - + {process.env.REACT_APP_TRACKING} @@ -138,7 +137,7 @@ export default function MobileSidebar({ sidebar, action, logoutModalHandler }) { - Resources + {process.env.REACT_APP_RESOURCES} diff --git a/src/components/Partials/Sidebar.jsx b/src/components/Partials/Sidebar.jsx index 33c8cfc..557fdbf 100755 --- a/src/components/Partials/Sidebar.jsx +++ b/src/components/Partials/Sidebar.jsx @@ -168,7 +168,7 @@ export default function Sidebar({ sidebar, action, logoutModalHandler }) { sidebar ? "active flex-1" : "w-0" }`} > - Tracking + {process.env.REACT_APP_TRACKING} @@ -208,7 +208,7 @@ export default function Sidebar({ sidebar, action, logoutModalHandler }) { sidebar ? "active flex-1" : "w-0" }`} > - Resources + {process.env.REACT_APP_RESOURCES} -- 2.34.1