Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions apps/web/src/app/[lang]/(app)/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { AppLayout } from '@/layouts/app-layout/AppLayout';
import { SupportBanner } from '@/components/SupportBanner';
import { routing } from '@/lib/i18n/routing';
import { SupportedLocale } from '@libs/i18n';
import { notFound } from 'next/navigation';
Expand All @@ -16,12 +15,9 @@ export default async function RootLayout({ children, modal, params }: AppLayoutP
notFound();
}
return (
<>
<SupportBanner />
<AppLayout>
{children}
{modal}
</AppLayout>
</>
<AppLayout>
{children}
{modal}
</AppLayout>
);
}
2 changes: 2 additions & 0 deletions apps/web/src/layouts/app-layout/AppLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Navbar } from '../../components/Navbar';
import { SidebarInset, SidebarProvider } from '@libs/ui/components/sidebar';
import { SidebarLeft } from './sidebars/sidebar-left/SidebarLeft';
import { SidebarRight } from './sidebars/sidebar-right/SidebarRight';
import { SupportBanner } from '@/components/SupportBanner';

export function AppLayout({ children }: { children: React.ReactNode }) {
const {
Expand All @@ -31,6 +32,7 @@ export function AppLayout({ children }: { children: React.ReactNode }) {
<SidebarInset
className={`@container/main ${device === 'mobile' ? 'pb-(--navbar-height) md:pb-0' : ''}`}
>
<SupportBanner />
<Header className={`${device === 'mobile' ? 'hidden' : ''}`} />
{children}
</SidebarInset>
Expand Down
Loading