feat(SW-572): Added support for logged in and logged out variants of the top link inside the header

This commit is contained in:
Erik Tiekstra
2024-11-11 14:03:08 +01:00
parent cc9f0509a1
commit d732138696
17 changed files with 215 additions and 68 deletions

View File

@@ -39,6 +39,7 @@ export default function LanguageSwitcher({
const languageSwitcherRef = useRef<HTMLDivElement>(null)
const isFooter = type === LanguageSwitcherTypesEnum.Footer
const isHeader = !isFooter
const globeIconSize = type === "desktopHeader" ? 16 : 20
const position = isFooter ? "footer" : "header"
@@ -87,7 +88,7 @@ export default function LanguageSwitcher({
})}
onClick={handleClick}
>
<GlobeIcon width={20} height={20} />
<GlobeIcon width={globeIconSize} height={globeIconSize} />
<Caption className={styles.buttonText} type="regular" asChild>
<span>{languages[currentLanguage]}</span>
</Caption>