fix(SW-1273): usage of Link component

move getLang further down the render to reduce CPU cycles

swap to min-width on button to compensate larger strings

remove useless async declaration
This commit is contained in:
Christian Andolf
2025-02-26 11:23:06 +01:00
parent 85cd815968
commit 51f71383d4
4 changed files with 6 additions and 5 deletions

View File

@@ -20,7 +20,6 @@ export default async function TopMenu() {
// cached
const intl = await getIntl()
// both preloaded
const lang = getLang()
const header = await getHeader()
const session = await auth()
const isLoggedIn = isValidSession(session)
@@ -29,6 +28,8 @@ export default async function TopMenu() {
return null
}
const lang = getLang()
return (
<div className={styles.topMenu}>
<div className={styles.content}>