Merge branch 'develop' into chore/google-authentication
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Box, IconButton, Typography } from '@mui/material';
|
||||
import { Box, IconButton, Skeleton, Typography } from '@mui/material';
|
||||
import { Icon } from '@rkheftan/harmony-ui';
|
||||
import { More } from 'iconsax-react';
|
||||
import type { UserInfo } from '@/contexts/AuthContext';
|
||||
@@ -7,7 +7,7 @@ interface HeaderProps {
|
||||
user: UserInfo;
|
||||
}
|
||||
|
||||
export const Header: React.FC<HeaderProps> = ({ user }) => {
|
||||
export const Header: React.FC<HeaderProps> = ({ user, loading }) => {
|
||||
return (
|
||||
<Box
|
||||
sx={{
|
||||
|
||||
@@ -14,7 +14,6 @@ export const Layout = () => {
|
||||
const theme = useTheme();
|
||||
const isMobile = useMediaQuery(theme.breakpoints.down('md'));
|
||||
const [sideNavOpen, setSideNavOpen] = useState(false);
|
||||
|
||||
const { userInfo } = useAuth();
|
||||
|
||||
return (
|
||||
@@ -45,7 +44,9 @@ export const Layout = () => {
|
||||
setSideNavOpen={setSideNavOpen}
|
||||
user={userInfo}
|
||||
/>
|
||||
<Outlet />
|
||||
<Box sx={{ flex: 1, overflowY: 'auto' }}>
|
||||
<Outlet />
|
||||
</Box>
|
||||
</Box>
|
||||
|
||||
<SideNav
|
||||
|
||||
@@ -3,7 +3,7 @@ import {
|
||||
Box,
|
||||
IconButton,
|
||||
Toolbar as MuiToolbar,
|
||||
Typography,
|
||||
Skeleton,
|
||||
} from '@mui/material';
|
||||
import { Icon } from '@rkheftan/harmony-ui';
|
||||
import { HambergerMenu, Menu } from 'iconsax-react';
|
||||
@@ -22,6 +22,7 @@ export const Toolbar: React.FC<ToolbarProps> = ({
|
||||
setSideNavOpen,
|
||||
isMobile,
|
||||
user,
|
||||
loading,
|
||||
}) => {
|
||||
return (
|
||||
<MuiToolbar
|
||||
@@ -52,8 +53,7 @@ export const Toolbar: React.FC<ToolbarProps> = ({
|
||||
<Icon Component={HambergerMenu} />
|
||||
</IconButton>
|
||||
)}
|
||||
{/* <Logo /> */}
|
||||
<Typography variant="h6">LOGO placeholder</Typography>
|
||||
<Logo />
|
||||
</Box>
|
||||
<Box
|
||||
sx={{ display: 'flex', height: '100%', alignItems: 'center', gap: 1 }}
|
||||
|
||||
Reference in New Issue
Block a user