From 262e4ab389605e521ed7da9f2b54f5ad463716da Mon Sep 17 00:00:00 2001 From: nicolas Date: Wed, 29 Apr 2020 13:44:20 -0300 Subject: [PATCH] Add Apps feature flag (#842) * add Apps feature flag * re-trigger build --- .env.example | 5 +++-- src/routes/safe/components/Layout/Tabs/index.jsx | 2 +- src/routes/safe/components/Layout/index.jsx | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.env.example b/.env.example index 504acbd5..9fc7c229 100644 --- a/.env.example +++ b/.env.example @@ -27,5 +27,6 @@ REACT_APP_APP_VERSION=$npm_package_version # all environments REACT_APP_INFURA_TOKEN= -# For Apps -REACT_APP_GNOSIS_APPS_URL=http://localhost:3002 +# For Apps +REACT_APP_GNOSIS_APPS_URL=https://safe-apps.staging.gnosisdev.com +REACT_APP_APPS_DISABLED=false diff --git a/src/routes/safe/components/Layout/Tabs/index.jsx b/src/routes/safe/components/Layout/Tabs/index.jsx index 3ade3bd6..e40672b3 100644 --- a/src/routes/safe/components/Layout/Tabs/index.jsx +++ b/src/routes/safe/components/Layout/Tabs/index.jsx @@ -100,7 +100,7 @@ const TabsComponent = (props: Props) => { label={labelTransactions} value={`${match.url}/transactions`} /> - {process.env.REACT_APP_ENV !== 'production' && ( + {!process.env.REACT_APP_APPS_DISABLED && ( { wrapInSuspense(, null)} /> wrapInSuspense(, null)} /> - {process.env.REACT_APP_ENV !== 'production' && ( + {!process.env.REACT_APP_APPS_DISABLED && (