Files
supabase/apps/studio/components/interfaces/Organization/ProjectClaim/layout.tsx
T
Ivan VasilovandJoshen Lim 586a829828 feat: Project claim (#35992)
* Add another page for claiming a project.

* Fix a misspell.

* Minor fixes.

* Comment some test code.

* Update the design on the confirm step.

* Reorganize the authorize page. Bunch of design fixes for the claim page.

* Fix

* Delete added files my mistake.

* Separate claim-project and authorize pages. Minor design fixes.

* Add more logs to the generate claim button.

* snapshot.

* Add more copy to the three steps.

* Make the claim URL button better.

* Add missing comma.

* Fix unneeded changes.

* Make the header full width.

* Fix all comments by Joshen.

* Clean up extra code.

* Forgotten some things to clean.

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2025-06-10 11:49:23 +03:00

40 lines
1.2 KiB
TypeScript

import Image from 'next/image'
import { PropsWithChildren, ReactNode } from 'react'
import { UserDropdown } from 'components/interfaces/UserDropdown'
import { FeedbackDropdown } from 'components/layouts/ProjectLayout/LayoutHeader/FeedbackDropdown'
import { BASE_PATH } from 'lib/constants'
import { Separator } from 'ui'
export const ProjectClaimLayout = ({
children,
title,
}: PropsWithChildren<{
title: ReactNode
}>) => {
return (
<>
<div className="flex flex-row justify-between flex-grow mx-auto w-full h-[52px] items-center px-4">
<div className="flex items-center gap-2">
<span className="sr-only">Supabase</span>
<Image
src={`${BASE_PATH}/img/supabase-logo.svg`}
alt="Supabase Logo"
height={20}
width={20}
/>
<span className="truncate">{title}</span>
</div>
<div className="flex items-center gap-x-2">
<FeedbackDropdown className="hidden xs:flex" />
<UserDropdown />
</div>
</div>
<Separator />
<div className="overflow-y-auto max-h-[calc(100vh-70px)] flex justify-center">
<div className="w-full max-w-md">{children}</div>
</div>
</>
)
}