fix: comments

This commit is contained in:
Christel Westerberg
2024-05-30 15:21:20 +02:00
parent 15b56fd0dd
commit 0a3272f75a
9 changed files with 10 additions and 371 deletions
@@ -1,11 +1,13 @@
import "@scandic-hotels/design-system/current/style.css"
import { _ } from "@/lib/translation"
import styles from "./bookingButton.module.css"
export default function BookingButton({ href }: { href: string }) {
return (
<a className={styles.button} href={href}>
Book
{_("Book")}
</a>
)
}
+1 -2
View File
@@ -25,11 +25,10 @@ export function MainMenu({
languageSwitcher,
bookingHref,
isLoggedIn,
lang,
}: MainMenuProps) {
const [isOpen, setIsOpen] = useState(false)
const lang = useParams().lang as Lang
function toogleIsOpen() {
setIsOpen((prevIsOpen) => !prevIsOpen)
}
+1
View File
@@ -45,6 +45,7 @@ export default async function Header({
languageSwitcher={languageSwitcher}
bookingHref={homeHref}
isLoggedIn={!!session}
lang={lang}
/>
</header>
)