mirror of
https://github.com/jeffvli/feishin.git
synced 2026-07-24 19:36:30 +02:00
hide mobile drawer auth shell
This commit is contained in:
@@ -40,6 +40,7 @@ export const MobileLayout = ({ shell }: MobileLayoutProps) => {
|
|||||||
id="mobile-layout"
|
id="mobile-layout"
|
||||||
>
|
>
|
||||||
{!shell && <WindowBar />}
|
{!shell && <WindowBar />}
|
||||||
|
{!shell && (
|
||||||
<ActionIcon
|
<ActionIcon
|
||||||
className={styles.drawerButton}
|
className={styles.drawerButton}
|
||||||
icon="menu"
|
icon="menu"
|
||||||
@@ -48,6 +49,7 @@ export const MobileLayout = ({ shell }: MobileLayoutProps) => {
|
|||||||
tooltip={{ label: 'Menu' }}
|
tooltip={{ label: 'Menu' }}
|
||||||
variant="subtle"
|
variant="subtle"
|
||||||
/>
|
/>
|
||||||
|
)}
|
||||||
<main className={styles.mainContent}>
|
<main className={styles.mainContent}>
|
||||||
<Suspense fallback={<Spinner container />}>
|
<Suspense fallback={<Spinner container />}>
|
||||||
<Outlet />
|
<Outlet />
|
||||||
@@ -55,6 +57,7 @@ export const MobileLayout = ({ shell }: MobileLayoutProps) => {
|
|||||||
</main>
|
</main>
|
||||||
<PlayerBar />
|
<PlayerBar />
|
||||||
</div>
|
</div>
|
||||||
|
{!shell && (
|
||||||
<Drawer
|
<Drawer
|
||||||
onClose={closeSidebar}
|
onClose={closeSidebar}
|
||||||
opened={sidebarOpened}
|
opened={sidebarOpened}
|
||||||
@@ -74,6 +77,7 @@ export const MobileLayout = ({ shell }: MobileLayoutProps) => {
|
|||||||
>
|
>
|
||||||
<MobileSidebar />
|
<MobileSidebar />
|
||||||
</Drawer>
|
</Drawer>
|
||||||
|
)}
|
||||||
<AnimatePresence initial={false}>
|
<AnimatePresence initial={false}>
|
||||||
{isFullScreenPlayerExpanded && (
|
{isFullScreenPlayerExpanded && (
|
||||||
<div className={styles.fullScreenPlayerOverlay}>
|
<div className={styles.fullScreenPlayerOverlay}>
|
||||||
|
|||||||
Reference in New Issue
Block a user