fix: format the code
This commit is contained in:
@@ -63,8 +63,8 @@ export const Layout = () => {
|
|||||||
<SideNav
|
<SideNav
|
||||||
open={sideNavOpen}
|
open={sideNavOpen}
|
||||||
onClose={() => setSideNavOpen(false)}
|
onClose={() => setSideNavOpen(false)}
|
||||||
header={isMobile ? undefined : <Header user={userInfo} />}
|
header={isMobile ? undefined : <Header />}
|
||||||
footer={isMobile ? <Header user={userInfo} /> : undefined}
|
footer={isMobile ? <Header /> : undefined}
|
||||||
navConfig={navItemConfigs}
|
navConfig={navItemConfigs}
|
||||||
activePath={location.pathname + location.hash}
|
activePath={location.pathname + location.hash}
|
||||||
selectedVariant="textOnly"
|
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 { Icon } from '@rkheftan/harmony-ui';
|
||||||
import { HambergerMenu, Menu } from 'iconsax-react';
|
import { HambergerMenu, Menu } from 'iconsax-react';
|
||||||
import { useState, type Dispatch, type SetStateAction } from 'react';
|
import { useState, type Dispatch, type SetStateAction } from 'react';
|
||||||
@@ -17,7 +17,6 @@ export const Toolbar: React.FC<ToolbarProps> = ({
|
|||||||
sideNavOpen,
|
sideNavOpen,
|
||||||
setSideNavOpen,
|
setSideNavOpen,
|
||||||
isMobile,
|
isMobile,
|
||||||
user,
|
|
||||||
}) => {
|
}) => {
|
||||||
const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null);
|
const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null);
|
||||||
const open = Boolean(anchorEl);
|
const open = Boolean(anchorEl);
|
||||||
|
|||||||
Reference in New Issue
Block a user