queue creation logic

This commit is contained in:
2024-04-13 12:59:32 +03:00
parent 6d7f2d7323
commit 17f94bf7bb
11 changed files with 169 additions and 45 deletions

View File

@ -26,6 +26,13 @@ const HeaderComponent = () => {
const [authModalOpen, setAuthModalOpen] = useState(false);
const [drawerOpen, setDrawerOpen] = useState(false);
// const [screenOrientation, setScreenOrientation] = useState<OrientationType>(
// window.screen.orientation.type
// );
// window.addEventListener("orientationchange", () =>
// setScreenOrientation(window.screen.orientation.type)
// );
const currentLanguage = useSelector(
(state: StorePrototype) => state.settings.language
@ -156,7 +163,11 @@ const HeaderComponent = () => {
<Menu
theme="dark"
mode="horizontal"
items={isMobile ? mobileItems : items}
items={
isMobile && window.screen.orientation.type === "portrait-primary"
? mobileItems
: items
}
style={{ flex: 1, minWidth: 0 }}
selectedKeys={selectedKeys}
className="header-container"