Files
Ivan VasilovandJonathan Summers-Muir 7d9343cc05 fix: Sticky resource banner (#29562)
* 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>
2024-09-30 17:42:32 +02:00

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)