Skip to content

Commit

Permalink
rename to viewportWidth
Browse files Browse the repository at this point in the history
  • Loading branch information
nileshgulia1 committed Mar 22, 2022
1 parent 470b8ba commit 32162e7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui/Header/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ const TopDropdownMenu = ({
id,
mobileText,
text,
width,
viewportWidth,
}) => {
const isMobile = width < 480;
const isMobile = viewportWidth < 480;

const Component = ({ mobileText }) => (
<Dropdown
Expand Down

0 comments on commit 32162e7

Please sign in to comment.