Skip to content

Commit

Permalink
fix dropdown hidden issue in header (#2526)
Browse files Browse the repository at this point in the history
  • Loading branch information
tienkane authored Aug 30, 2024
1 parent 93bee05 commit 17bf8da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Header/groups/SwapNavGroup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const StyledBuyCrypto = styled(BuyCrypto)`
const SwapNavGroup = () => {
const { networkInfo, chainId } = useActiveWeb3React()
const { pathname } = useLocation()
const upTo420 = useMedia('(max-width: 600px)')
const upToXXSmall = useMedia('(max-width: 420px)')

const [{ show: isShowTutorial = false, stepInfo }] = useTutorialSwapGuide()
const { mixpanelHandler } = useMixpanel()
Expand All @@ -62,7 +62,7 @@ const SwapNavGroup = () => {

return (
<NavGroup
dropdownAlign={upTo420 ? 'right' : 'left'}
dropdownAlign={upToXXSmall ? 'right' : 'left'}
isActive={isActive}
forceOpen={isShowTutorial && stepInfo?.selector === `#${TutorialIds.BRIDGE_LINKS}`}
anchor={
Expand Down

0 comments on commit 17bf8da

Please sign in to comment.