fix: format the code
This commit is contained in:
@@ -64,4 +64,4 @@
|
||||
"redirectingTo": "Redirecting to",
|
||||
"redirecting": "Redirecting..."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,4 +13,4 @@
|
||||
"activeSessions": "Active sessions",
|
||||
"setting": "Settings"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -64,4 +64,4 @@
|
||||
"redirectingTo": "در حال انتقال به",
|
||||
"redirecting": "درحال انتقال..."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,4 +13,4 @@
|
||||
"activeSessions": "نشست های فعال",
|
||||
"setting": "تنظیمات"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,8 +63,8 @@ export const Layout = () => {
|
||||
<SideNav
|
||||
open={sideNavOpen}
|
||||
onClose={() => setSideNavOpen(false)}
|
||||
header={isMobile ? undefined : <Header user={userInfo} />}
|
||||
footer={isMobile ? <Header user={userInfo} /> : undefined}
|
||||
header={isMobile ? undefined : <Header />}
|
||||
footer={isMobile ? <Header /> : undefined}
|
||||
navConfig={navItemConfigs}
|
||||
activePath={location.pathname + location.hash}
|
||||
selectedVariant="textOnly"
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Avatar, Box, IconButton, Toolbar as MuiToolbar } from '@mui/material';
|
||||
import { Box, IconButton, Toolbar as MuiToolbar } from '@mui/material';
|
||||
import { Icon } from '@rkheftan/harmony-ui';
|
||||
import { HambergerMenu, Menu } from 'iconsax-react';
|
||||
import { useState, type Dispatch, type SetStateAction } from 'react';
|
||||
@@ -17,7 +17,6 @@ export const Toolbar: React.FC<ToolbarProps> = ({
|
||||
sideNavOpen,
|
||||
setSideNavOpen,
|
||||
isMobile,
|
||||
user,
|
||||
}) => {
|
||||
const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null);
|
||||
const open = Boolean(anchorEl);
|
||||
@@ -63,9 +62,9 @@ export const Toolbar: React.FC<ToolbarProps> = ({
|
||||
)}
|
||||
<Logo />
|
||||
</Box>
|
||||
<IconButton color="primary" onClick={handleClick}>
|
||||
<Icon Component={Menu} variant="Bold" />
|
||||
</IconButton>
|
||||
<IconButton color="primary" onClick={handleClick}>
|
||||
<Icon Component={Menu} variant="Bold" />
|
||||
</IconButton>
|
||||
<ProductsMenu anchorEl={anchorEl} onClose={handleClose} open={open} />
|
||||
</MuiToolbar>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user