mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 02:45:07 +03:00
* feat: move storage settings * feat: redirect * feat: database settings in service area * feat: move data api settings * fix: revert data API placement * feat: minor UX touches * fix: simplify configuration group * feat: references to database settings * feat: references to storage settings * fix: redirects and formatting * fix: Import StorageMenu dynamically to avoid SSR issues with useLocalStorage * feat: sticky sidebar footer * fix: move Data API closer to semantic siblings * fix: revert smart comma * Shift bucket sort logic into storage explorer store * Small fix and clean up * fix: correct background-color class --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
26 lines
597 B
TypeScript
26 lines
597 B
TypeScript
import { ReactNode } from 'react'
|
|
|
|
import StorageMenu from 'components/interfaces/Storage/StorageMenu'
|
|
import { withAuth } from 'hooks/misc/withAuth'
|
|
import ProjectLayout from '../ProjectLayout/ProjectLayout'
|
|
|
|
export interface StorageLayoutProps {
|
|
title: string
|
|
children: ReactNode
|
|
}
|
|
|
|
const StorageLayout = ({ title, children }: StorageLayoutProps) => {
|
|
return (
|
|
<ProjectLayout
|
|
stickySidebarBottom
|
|
title={title || 'Storage'}
|
|
product="Storage"
|
|
productMenu={<StorageMenu />}
|
|
>
|
|
{children}
|
|
</ProjectLayout>
|
|
)
|
|
}
|
|
|
|
export default withAuth(StorageLayout)
|