Skip to content

Commit

Permalink
fix app header in xxsmall screen (#2523)
Browse files Browse the repository at this point in the history
  • Loading branch information
tienkane authored Aug 29, 2024
1 parent 6a6f8de commit 69cb9ec
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/components/Header/groups/CampaignNavGroup.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Trans } from '@lingui/macro'
import { useLocation } from 'react-router-dom'
import { useMedia } from 'react-use'
import styled from 'styled-components'

import Column from 'components/Column'
import { NewLabel } from 'components/Menu'
Expand All @@ -9,6 +10,12 @@ import { APP_PATHS } from 'constants/index'
import { DropdownTextAnchor, StyledNavLink } from '../styleds'
import NavGroup from './NavGroup'

const StyledNavGroup = styled(NavGroup)`
${({ theme }) => theme.mediaWidth.upToXXSmall`
display: none;
`}
`

const CampaignNavGroup = () => {
const { pathname } = useLocation()
const isActive = pathname.includes('/campaigns')
Expand All @@ -18,7 +25,7 @@ const CampaignNavGroup = () => {

return (
<>
<NavGroup
<StyledNavGroup
dropdownAlign={upTo500 ? 'right' : 'left'}
isActive={isActive}
anchor={
Expand Down

0 comments on commit 69cb9ec

Please sign in to comment.