feat(SW-187): Fixed toggling issue

This commit is contained in:
Pontus Dreij
2024-09-11 10:18:39 +02:00
parent 84fb10aa2c
commit 76c7cfa6f0
3 changed files with 15 additions and 10 deletions

View File

@@ -26,9 +26,7 @@ export default function LanguageSwitcherContent({
const languageSwitcherRef = useTrapFocus()
const urlKeys = Object.keys(urls) as Lang[]
const position =
type === "footer"
? DropdownType.FooterLanguage
: DropdownType.HeaderLanguage
type === "footer" ? DropdownType.FooterLanguage : DropdownType.HamburgerMenu
return (
<div className={styles.languageSwitcherContent} ref={languageSwitcherRef}>