refactor: replace SettingsPopover with LangToggle and ThemeSwitch in SiteHeader component
This commit is contained in:
parent
98142fe782
commit
38efe3428a
1 changed files with 5 additions and 3 deletions
|
|
@ -5,7 +5,8 @@ import { UserHeaderSection } from "~/components/navbar/login-button";
|
||||||
import { MainNav } from "~/components/navbar/main-nav";
|
import { MainNav } from "~/components/navbar/main-nav";
|
||||||
import { MobileNav } from "~/components/navbar/mobile-nav";
|
import { MobileNav } from "~/components/navbar/mobile-nav";
|
||||||
import { RicercaCommand } from "~/components/navbar/ricerca_command";
|
import { RicercaCommand } from "~/components/navbar/ricerca_command";
|
||||||
import { SettingsPopover } from "~/components/navbar/settings-modal";
|
import { LangToggle } from "./lang-toggle";
|
||||||
|
import { ThemeSwitch } from "./theme-toggle";
|
||||||
|
|
||||||
export function SiteHeader() {
|
export function SiteHeader() {
|
||||||
const pathname = usePathname();
|
const pathname = usePathname();
|
||||||
|
|
@ -35,8 +36,9 @@ export function SiteHeader() {
|
||||||
<div className="float-end flex flex-1 items-center justify-end gap-0.5">
|
<div className="float-end flex flex-1 items-center justify-end gap-0.5">
|
||||||
<RicercaCommand />
|
<RicercaCommand />
|
||||||
|
|
||||||
<div className="hidden md:block">
|
<div className="hidden w-fit items-center gap-4 md:flex">
|
||||||
<SettingsPopover />
|
<LangToggle />
|
||||||
|
<ThemeSwitch />
|
||||||
</div>
|
</div>
|
||||||
<UserHeaderSection
|
<UserHeaderSection
|
||||||
key={pathname}
|
key={pathname}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue