-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: move profile to the container layout
- Loading branch information
Showing
22 changed files
with
76 additions
and
74 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
'use client'; | ||
|
||
import { Box, Container, Stack } from '@mui/material'; | ||
import React, { FC, ReactNode } from 'react'; | ||
import Menu from './components/Menu'; | ||
import { DesktopView, MobileView } from '@/components/ResponsiveDesign'; | ||
import { useAppContext } from '@/hooks/useAppContext'; | ||
import MobileHeader from '@/components/MobileHeader/MobileHeader'; | ||
|
||
export interface LayoutProps { | ||
children: ReactNode; | ||
} | ||
const Layout: FC<LayoutProps> = ({ children }) => { | ||
const { isMobile } = useAppContext(); | ||
return ( | ||
<> | ||
<DesktopView> | ||
<Stack direction={isMobile ? 'column' : 'row'} spacing={2}> | ||
<DesktopView> | ||
<Box | ||
sx={{ | ||
width: 260, | ||
border: '1px solid', | ||
borderColor: 'divider', | ||
borderRadius: 1, | ||
}} | ||
> | ||
<Menu /> | ||
</Box> | ||
</DesktopView> | ||
|
||
{children} | ||
</Stack> | ||
</DesktopView> | ||
<MobileView> | ||
<Stack direction={'column'} spacing={2}> | ||
{children} | ||
</Stack> | ||
</MobileView> | ||
</> | ||
); | ||
}; | ||
|
||
export default Layout; |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters