Skip to content

Commit

Permalink
Merge pull request #78 from reflexer-labs/deployment
Browse files Browse the repository at this point in the history
hide incentives on mainnet
  • Loading branch information
mstfash authored Feb 15, 2021
2 parents a263857 + fe53640 commit 536717b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
13 changes: 8 additions & 5 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import SafeDetails from './containers/OnBoarding/SafeDetails'
import Privacy from './containers/Privacy'
import CustomToast from './components/CustomToast'
import Incentives from './containers/Incentives'
import { NETWORK_ID } from './connectors'

// Toast css

Expand Down Expand Up @@ -50,11 +51,13 @@ const App = () => {
<Suspense fallback={null}>
<Web3ReactManager>
<Switch>
<Route
exact
component={Incentives}
path={'/incentives'}
/>
{NETWORK_ID === 1 ? null : (
<Route
exact
component={Incentives}
path={'/incentives'}
/>
)}
<Route
exact
component={Privacy}
Expand Down
16 changes: 9 additions & 7 deletions src/components/NavLinks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,15 @@ const NavLinks = () => {
>
<SafeIcon className="opacity" /> {t('app')}
</NavBarLink>
<NavBarLink
id="incentives-link"
to="/incentives"
onClick={(e) => handleLinkClick(e, false)}
>
<DollarSign size="18" /> {t('incentives')}
</NavBarLink>
{NETWORK_ID === 1 ? null : (
<NavBarLink
id="incentives-link"
to="/incentives"
onClick={(e) => handleLinkClick(e, false)}
>
<DollarSign size="18" /> {t('incentives')}
</NavBarLink>
)}
<NavBarLink
to="/"
onClick={(e) =>
Expand Down

0 comments on commit 536717b

Please sign in to comment.