From c752a43cf69c41c4e13a5ae0e8a21e167cdb0d21 Mon Sep 17 00:00:00 2001 From: Chukwumdiebube Date: Mon, 6 Mar 2023 20:09:29 +0100 Subject: [PATCH 1/2] capability to hide tracking --- src/components/Partials/MobileSideBar.jsx | 6 ++++-- src/components/Partials/Sidebar.jsx | 6 ++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/Partials/MobileSideBar.jsx b/src/components/Partials/MobileSideBar.jsx index 57c2cb2..b5c530c 100755 --- a/src/components/Partials/MobileSideBar.jsx +++ b/src/components/Partials/MobileSideBar.jsx @@ -102,7 +102,8 @@ export default function MobileSidebar({ sidebar, action, logoutModalHandler }) { -
  • + {process.env.REACT_APP_TRACKING_SHOW ? + (
  • -
  • + ) + : ''}
  • -
  • + {process.env.REACT_APP_TRACKING_SHOW ? + (
  • -
  • + ) + : ''}
  • Date: Thu, 9 Mar 2023 19:33:21 +0100 Subject: [PATCH 2/2] added the true conditional --- src/components/Partials/MobileSideBar.jsx | 2 +- src/components/Partials/Sidebar.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/Partials/MobileSideBar.jsx b/src/components/Partials/MobileSideBar.jsx index b5c530c..d228873 100755 --- a/src/components/Partials/MobileSideBar.jsx +++ b/src/components/Partials/MobileSideBar.jsx @@ -102,7 +102,7 @@ export default function MobileSidebar({ sidebar, action, logoutModalHandler }) {
  • - {process.env.REACT_APP_TRACKING_SHOW ? + {(process.env.REACT_APP_TRACKING_SHOW == true) ? (
  • - {process.env.REACT_APP_TRACKING_SHOW ? + {(process.env.REACT_APP_TRACKING_SHOW == true) ? (