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

@@ -148,12 +148,12 @@ export function MainMenu({
<span className={styles.mobileSeparator} />
</li>
<li className={styles.mobileLinkRow}>
<a
<Link
className={styles.mobileLinkButton}
href={findMyBooking[lang]}
>
{intl.formatMessage({ id: "Find booking" })}
</a>
</Link>
</li>
</ul>
<ul className={styles.mainLinks}>