feat(SW-189): added translations and some minor changes
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
"use client"
|
||||
|
||||
import { useEffect } from "react"
|
||||
import { Dialog, Modal } from "react-aria-components"
|
||||
import { useIntl } from "react-intl"
|
||||
|
||||
@@ -38,6 +39,13 @@ export default function MobileMenu({
|
||||
}
|
||||
})
|
||||
|
||||
// Making sure the menu is always opened at the top of the page, just below the header.
|
||||
useEffect(() => {
|
||||
if (isHamburgerMenuOpen) {
|
||||
window.scrollTo({ top: 0, behavior: "instant" })
|
||||
}
|
||||
}, [isHamburgerMenuOpen])
|
||||
|
||||
return (
|
||||
<>
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user