Skip to content

Commit

Permalink
chore: better variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
kemuru committed Aug 31, 2023
1 parent 9f92071 commit 214f51d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/pages/Home/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ const Header = () => {
const [ref, { width }] = useMeasure();
const theme = useTheme();
const themeIsLight = theme.name === "light";
const breakpointIsBig = width > BREAKPOINT_SMALL_SCREEN;
const screenIsBig = width > BREAKPOINT_SMALL_SCREEN;
return (
<div ref={ref}>
{breakpointIsBig ? <HeaderDesktop {...{ themeIsLight }} /> : <HeaderMobile {...{ themeIsLight }} />}
{screenIsBig ? <HeaderDesktop {...{ themeIsLight }} /> : <HeaderMobile {...{ themeIsLight }} />}
</div>
);
};
Expand Down

0 comments on commit 214f51d

Please sign in to comment.