Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Add types for WizardLayout

Joshen Limb5db9698a088
diff --git a/studio/components/layouts/WizardLayout.tsx b/studio/components/layouts/WizardLayout.tsx
index 6392b97c864..74a1ffc3744 100644
--- a/studio/components/layouts/WizardLayout.tsx
+++ b/studio/components/layouts/WizardLayout.tsx
@@ -7,8 +7,18 @@ import { useFlag, withAuth } from 'hooks'
import { BASE_PATH } from 'lib/constants'
import FeedbackDropdown from './ProjectLayout/LayoutHeader/FeedbackDropdown'
import HelpPopover from './ProjectLayout/LayoutHeader/HelpPopover'
+import { Organization, Project } from 'types'
-const WizardLayout = ({ organization, project, children }: PropsWithChildren<any>) => {
+interface WizardLayoutProps {
+ organization: Organization | null | undefined
+ project: Project | null
+}
+
+const WizardLayout = ({
+ organization,
+ project,
+ children,
+}: PropsWithChildren<WizardLayoutProps>) => {
const ongoingIncident = useFlag('ongoingIncident')
const maxHeight = ongoingIncident ? 'calc(100vh - 44px)' : '100vh'