Skip to content

Commit

Permalink
feat: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
flobarreto committed Sep 18, 2023
1 parent 0415346 commit ac67425
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
5 changes: 0 additions & 5 deletions src/components/Layout/Navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@ import React from 'react'

import { useLocation } from '@reach/router'
import UserInformation, { UserInformationProps } from 'decentraland-gatsby/dist/components/User/UserInformation'
import UserMenu from 'decentraland-gatsby/dist/components/User/UserMenu'
import useFeatureFlagContext from 'decentraland-gatsby/dist/context/FeatureFlag/useFeatureFlagContext'
import { Mobile, NotMobile } from 'decentraland-ui/dist/components/Media/Media'

import { FeatureFlags } from '../../utils/features'

import BurgerMenu from './BurgerMenu/BurgerMenu'

const BURGER_MENU_LOCATIONS = ['/', '/proposals/', '/transparency/', '/projects/', '/profile/']
Expand All @@ -16,7 +12,6 @@ function Navbar(props: UserInformationProps) {
const location = useLocation()
const showBurgerMenu = BURGER_MENU_LOCATIONS.some((burgerLocation) => burgerLocation === location.pathname)

const [ff] = useFeatureFlagContext()
return (
<>
{showBurgerMenu && (
Expand Down
1 change: 0 additions & 1 deletion src/utils/features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ export enum FeatureFlags {
// Polygon = 'dao-enabled-polygon',
Ens = 'dao-enabled-ens',
Delegation = 'dao-enabled-delegation',
NewNavbarDropdown = 'dapps-new-navbar-dropdown',
}

0 comments on commit ac67425

Please sign in to comment.