This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

feat: remove semble aside on guest app layout

+1 -9
+1 -9
src/webapp/components/navigation/guestAppLayout/GuestAppLayout.tsx
··· 2 2 3 3 import { AppShell } from '@mantine/core'; 4 4 import { useNavbarContext } from '@/providers/navbar'; 5 - import { usePathname } from 'next/navigation'; 6 5 import GuestNavbar from '../guestNavbar/GuestNavbar'; 7 6 import GuestBottomBar from '../guestBottomBar/GuestBottomBar'; 8 7 import { useMediaQuery } from '@mantine/hooks'; ··· 14 13 export default function GuestAppLayout(props: Props) { 15 14 const { mobileOpened, desktopOpened } = useNavbarContext(); 16 15 const isMobile = useMediaQuery('(max-width: 48em)', true); // "sm" breakpoint 17 - const pathname = usePathname(); 18 - 19 - const ROUTES_WITH_ASIDE = ['/url']; 20 - const hasAside = ROUTES_WITH_ASIDE.some((prefix) => 21 - pathname.startsWith(prefix), 22 - ); 23 - const asideWidth = hasAside ? 300 : 0; 24 16 25 17 return ( 26 18 <AppShell ··· 31 23 collapsed: { mobile: !mobileOpened, desktop: !desktopOpened }, 32 24 }} 33 25 aside={{ 34 - width: asideWidth, 26 + width: 0, 35 27 breakpoint: 'xl', 36 28 collapsed: { mobile: true }, 37 29 }}