mirror of
https://github.com/supabase/supabase.git
synced 2026-10-15 06:09:08 +03:00
* Make the resource banner sticky. * Remove main from all layouts that are using it. * Update apps/studio/components/ui/ResourceExhaustionWarningBanner/ResourceExhaustionWarningBanner.tsx Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com> * Fix the whitespace. * Fix some of the pages with broken layouts. * Fix a merge error. * Fix the layout of the SQL editor. --------- Co-authored-by: Jonathan Summers-Muir <MildTomato@users.noreply.github.com>
20 lines
525 B
TypeScript
20 lines
525 B
TypeScript
import { PropsWithChildren } from 'react'
|
|
|
|
import { withAuth } from 'hooks/misc/withAuth'
|
|
import ProjectLayout from '../ProjectLayout/ProjectLayout'
|
|
import ReportsMenu from './ReportsMenu'
|
|
|
|
interface ReportsLayoutProps {
|
|
title?: string
|
|
}
|
|
|
|
const ReportsLayout = ({ title, children }: PropsWithChildren<ReportsLayoutProps>) => {
|
|
return (
|
|
<ProjectLayout title={title} product="Reports" productMenu={<ReportsMenu />} isBlocking={false}>
|
|
{children}
|
|
</ProjectLayout>
|
|
)
|
|
}
|
|
|
|
export default withAuth(ReportsLayout)
|