feat(SW-572): Added support for logged in and logged out variants of the top link inside the header
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user