Skip to content

Commit

Permalink
feat: Add tracking to the UserInformation component
Browse files Browse the repository at this point in the history
  • Loading branch information
LautaroPetaccio committed Oct 13, 2023
1 parent 89f2fdd commit d90d0f0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Layout/Navbar.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { useLocation } from '@reach/router'
import UserInformation, { UserInformationProps } from 'decentraland-gatsby/dist/components/User/UserInformation'
import UserInformation from 'decentraland-gatsby/dist/components/User/UserInformation'
import { Mobile, NotMobile } from 'decentraland-ui/dist/components/Media/Media'

import BurgerMenu from './BurgerMenu/BurgerMenu'

const BURGER_MENU_LOCATIONS = ['/', '/proposals/', '/transparency/', '/projects/', '/profile/']

function Navbar(props: UserInformationProps) {
function Navbar() {
const location = useLocation()
const showBurgerMenu = BURGER_MENU_LOCATIONS.some((burgerLocation) => burgerLocation === location.pathname)

Expand All @@ -18,7 +18,7 @@ function Navbar(props: UserInformationProps) {
</Mobile>
)}
<NotMobile>
<UserInformation {...props} />
<UserInformation />
</NotMobile>
</>
)
Expand Down

0 comments on commit d90d0f0

Please sign in to comment.