Skip to content

Commit

Permalink
This stuff doesn't work.
Browse files Browse the repository at this point in the history
  • Loading branch information
bramirez96 committed Aug 11, 2024
1 parent b5136c1 commit a330b7f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 10 deletions.
5 changes: 1 addition & 4 deletions src/app/components/header/DesktopHeader.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
import { HeaderNavItem, type HeaderNavItemSubProps } from "./HeaderNavItem";
import Link from "next/link";
import { MOBILE_HEADER_BREAKPOINT } from "~/config/constants";

export function DesktopHeader() {
return (
<header
className={`hidden w-full flex-col gap-2 min-[${MOBILE_HEADER_BREAKPOINT}px]:flex`}
>
<header className={`hidden w-full flex-col gap-2 min-[650px]:flex`}>
<Link href="/">
<h1 className="w-full text-center font-title text-4xl">
Santa Cruz Contra Dance
Expand Down
7 changes: 2 additions & 5 deletions src/app/components/header/MobileHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ import {
} from "~/components/ui/popover";
import { HeaderNavItem, type HeaderNavItemSubProps } from "./HeaderNavItem";
import Link from "next/link";
import { MOBILE_HEADER_BREAKPOINT } from "~/config/constants";

export function MobileHeader() {
return (
<>
<header
className={`relative flex w-full flex-col min-[${MOBILE_HEADER_BREAKPOINT}px]:hidden`}
className={`relative flex w-full flex-col min-[650px]:hidden`}
>
<MobilePopoverNav />
<div className="flex flex-col items-start gap-2 p-4">
Expand All @@ -36,9 +35,7 @@ function MobilePopoverNav() {
}, [setNavOpen]);

useEffect(() => {
const mediaQuery = window.matchMedia(
`(min-width:${MOBILE_HEADER_BREAKPOINT}px)`,
);
const mediaQuery = window.matchMedia(`(min-width:650px)`);

const closeOnMatch = (e: MediaQueryListEvent) => {
if (e.matches) closeNav();
Expand Down
1 change: 0 additions & 1 deletion src/config/constants.ts

This file was deleted.

0 comments on commit a330b7f

Please sign in to comment.