Skip to content

Commit

Permalink
fix: toggle language picker
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanlundberg committed Jun 5, 2024
1 parent 79bcfd5 commit 79d57b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/menu-settings/MenuSelectLanguage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import useClickOutside from "@/hooks/useClickOutside";
import useOpenClose from "@/hooks/useOpenClose";

export default function MenuSelectLanguage() {
const { isOpen, close } = useOpenClose(false);
const { isOpen, close, toggle } = useOpenClose(false);
const componentRef = useRef<HTMLDivElement | null>(null);
useClickOutside(componentRef, () => close());
const { setSettingsOpen } = useSettingsModalStore();
Expand Down Expand Up @@ -43,7 +43,7 @@ export default function MenuSelectLanguage() {
<div className="ms-12">{t("language")}</div>
<div className="me-6 relative">
<Button
onClick={() => close()}
onClick={() => toggle()}
label={labelData}
icon={flagIcon}
className="min-w-32 max-w-40 text-black font-mono"
Expand Down

0 comments on commit 79d57b7

Please sign in to comment.