Skip to content

Commit

Permalink
Merge pull request #320 from 1Hive/feature-flags
Browse files Browse the repository at this point in the history
Feature flags
  • Loading branch information
Corantin committed Jun 15, 2022
2 parents 6d27f68 + b9ebb1e commit 3876e70
Show file tree
Hide file tree
Showing 6 changed files with 295 additions and 223 deletions.
3 changes: 2 additions & 1 deletion packages/react-app/src/components/header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import { GUpx, isDarkTheme } from 'src/utils/style.util';
import styled from 'styled-components';
import React, { useMemo } from 'react';
import { useWallet } from 'src/contexts/wallet.context';
import { flags } from 'src/services/feature-flag.service';
import AccountModule from '../account/account-module';
import HeaderMenu from './header-menu';
import HeaderTitle from './header-title';
Expand Down Expand Up @@ -92,7 +93,7 @@ function Header({ children }: Props) {
{children}
<HeaderMenu below={below} />
<AccountModule compact={layoutSmall} />
{!below(500) && !env('FORCE_CHAIN_ID') && (
{!below(500) && !env('FORCE_CHAIN_ID') && flags.SWITCH_CHAIN && (
<NetworkSelectorStyled
borderColor={theme.border}
items={networkNames}
Expand Down
Loading

0 comments on commit 3876e70

Please sign in to comment.