fix(BOOK-325): Added refetch options to user.name query and refactored header

Approved-by: Linus Flood
Approved-by: Matilda Landström
This commit is contained in:
Erik Tiekstra
2025-11-13 06:33:47 +00:00
parent 3a45e6cfe3
commit c4b564998c
27 changed files with 395 additions and 347 deletions

View File

@@ -0,0 +1,28 @@
import { cx } from "class-variance-authority"
import NextLink from "next/link"
import { MaterialIcon } from "@scandic-hotels/design-system/Icons/MaterialIcon"
import { Typography } from "@scandic-hotels/design-system/Typography"
import styles from "./menuLink.module.css"
import type { ComponentProps } from "react"
export function MenuLink({
className,
children,
...props
}: ComponentProps<typeof NextLink>) {
return (
<Typography variant="Body/Paragraph/mdRegular">
<NextLink className={cx(styles.menuLink, className)} {...props}>
{children}
<MaterialIcon
icon="arrow_forward"
color="CurrentColor"
className={styles.arrowIcon}
/>
</NextLink>
</Typography>
)
}