diff --git a/src/components/Header.tsx b/src/components/Header.tsx index e0280aa..0223dde 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -10,7 +10,8 @@ import { IconRuler, IconSettings, } from '@tabler/icons-solidjs' -import { For, ParentComponent, Show } from 'solid-js' +import { For, ParentComponent, Show, createSignal } from 'solid-js' +import { twMerge } from 'tailwind-merge' import { themes } from '~/constants' import { setCurTheme, setSelectedEndpoint } from '~/signals' @@ -100,6 +101,8 @@ export const Header = () => { const location = useLocation() const navigate = useNavigate() + const [openedDrawer, setOpenedDrawer] = createSignal(false) + const onSwitchEndpointClick = () => { setSelectedEndpoint('') navigate('/setup') @@ -108,8 +111,14 @@ export const Header = () => { return (