Merge pull request #844 from gnosis/development
Add Apps feature flag (#842)
This commit is contained in:
commit
0e79cc5f9e
|
@ -28,4 +28,5 @@ REACT_APP_APP_VERSION=$npm_package_version
|
||||||
REACT_APP_INFURA_TOKEN=
|
REACT_APP_INFURA_TOKEN=
|
||||||
|
|
||||||
# For Apps
|
# For Apps
|
||||||
REACT_APP_GNOSIS_APPS_URL=http://localhost:3002
|
REACT_APP_GNOSIS_APPS_URL=https://safe-apps.staging.gnosisdev.com
|
||||||
|
REACT_APP_APPS_DISABLED=false
|
||||||
|
|
|
@ -100,7 +100,7 @@ const TabsComponent = (props: Props) => {
|
||||||
label={labelTransactions}
|
label={labelTransactions}
|
||||||
value={`${match.url}/transactions`}
|
value={`${match.url}/transactions`}
|
||||||
/>
|
/>
|
||||||
{process.env.REACT_APP_ENV !== 'production' && (
|
{!process.env.REACT_APP_APPS_DISABLED && (
|
||||||
<Tab
|
<Tab
|
||||||
classes={{
|
classes={{
|
||||||
selected: classes.tabWrapperSelected,
|
selected: classes.tabWrapperSelected,
|
||||||
|
|
|
@ -91,7 +91,7 @@ const Layout = (props: Props) => {
|
||||||
<Switch>
|
<Switch>
|
||||||
<Route exact path={`${match.path}/balances/:assetType?`} render={() => wrapInSuspense(<Balances />, null)} />
|
<Route exact path={`${match.path}/balances/:assetType?`} render={() => wrapInSuspense(<Balances />, null)} />
|
||||||
<Route exact path={`${match.path}/transactions`} render={() => wrapInSuspense(<TxsTable />, null)} />
|
<Route exact path={`${match.path}/transactions`} render={() => wrapInSuspense(<TxsTable />, null)} />
|
||||||
{process.env.REACT_APP_ENV !== 'production' && (
|
{!process.env.REACT_APP_APPS_DISABLED && (
|
||||||
<Route
|
<Route
|
||||||
exact
|
exact
|
||||||
path={`${match.path}/apps`}
|
path={`${match.path}/apps`}
|
||||||
|
|
Loading…
Reference in New Issue