fix: comments
This commit is contained in:
@@ -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>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
@@ -45,6 +45,7 @@ export default async function Header({
|
||||
languageSwitcher={languageSwitcher}
|
||||
bookingHref={homeHref}
|
||||
isLoggedIn={!!session}
|
||||
lang={lang}
|
||||
/>
|
||||
</header>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user