Skip to content

Commit

Permalink
fix: reset unrelated app-header changes
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanprobst committed Apr 15, 2024
1 parent 609dc43 commit 9d6af09
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions components/app-header.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import { MenuIcon } from "lucide-react";
import { useTranslations } from "next-intl";

import { AppNavLink } from "@/components/app-nav-link";
import { ColorSchemeSwitcher } from "@/components/color-scheme-switcher";
import type { LinkProps } from "@/components/link";
import { LocaleSwitcher } from "@/components/locale-switcher";
import { Logo } from "@/components/logo";
import { IconButton } from "@/components/ui/icon-button";
import { createHref } from "@/lib/create-href";

export function AppHeader() {
Expand All @@ -20,8 +18,8 @@ export function AppHeader() {

return (
<header className="border-b">
<div className="container flex max-w-screen-md items-center justify-between gap-x-4 border-x bg-neutral-0 py-3 xs:py-6 dark:bg-neutral-900">
<nav aria-label={t("navigation-primary")} className="hidden xs:block">
<div className="container flex max-w-screen-md items-center justify-between gap-x-4 border-x bg-neutral-0 py-6 dark:bg-neutral-900">
<nav aria-label={t("navigation-primary")}>
<ul className="-ml-3 flex items-center gap-x-2 text-sm font-medium" role="list">
{Object.entries(links).map(([id, link]) => {
if (id === "home") {
Expand All @@ -44,14 +42,9 @@ export function AppHeader() {
</ul>
</nav>

<div className="-mr-1 ml-auto flex items-center gap-x-2">
<div className="-mr-1 flex items-center gap-x-2">
<ColorSchemeSwitcher />
<LocaleSwitcher />
<nav aria-label={t("navigation-primary")} className="block xs:hidden">
<IconButton variant="plain">
<MenuIcon className="size-5 shrink-0" />
</IconButton>
</nav>
</div>
</div>
</header>
Expand Down

0 comments on commit 9d6af09

Please sign in to comment.