Files
supabase/apps/studio/components/interfaces/Settings/General/TransferProjectPanel/TransferProjectPanel.tsx
Saxon Fletcher e98ba379b8 Use page and form components general settings (#41192)
* use page and form components general settings

* prettier

* Update apps/studio/components/interfaces/Settings/General/General.tsx

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* update custom domain

* card content

* Update apps/studio/components/interfaces/Settings/General/General.tsx

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>

* Address coderabbit comments

* Update apps/studio/components/interfaces/Settings/General/General.tsx

Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>

* Update apps/studio/components/interfaces/Settings/General/General.tsx

Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>

* Update apps/studio/components/interfaces/Settings/General/General.tsx

Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>

* Update apps/studio/components/interfaces/Settings/General/General.tsx

Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>

* Update apps/studio/components/interfaces/Settings/General/CustomDomainConfig/CustomDomainsConfigureHostname.tsx

Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
Co-authored-by: Francesco Sansalvadore <f.sansalvadore@gmail.com>
2025-12-15 03:28:54 +00:00

54 lines
1.7 KiB
TypeScript

import { Truck } from 'lucide-react'
import { useSelectedProjectQuery } from 'hooks/misc/useSelectedProject'
import { TransferProjectButton } from './TransferProjectButton'
import { Card, CardContent } from 'ui'
import {
PageSection,
PageSectionContent,
PageSectionDescription,
PageSectionMeta,
PageSectionSummary,
PageSectionTitle,
} from 'ui-patterns/PageSection'
export const TransferProjectPanel = () => {
const { data: project } = useSelectedProjectQuery()
if (project === undefined) return null
return (
<PageSection id="transfer-project">
<PageSectionMeta>
<PageSectionSummary>
<PageSectionTitle>Transfer Project</PageSectionTitle>
<PageSectionDescription>
Transfer your project to a different organization.
</PageSectionDescription>
</PageSectionSummary>
</PageSectionMeta>
<PageSectionContent>
<Card>
<CardContent>
<div className="flex flex-col @lg:flex-row @lg:justify-between @lg:items-center gap-4">
<div className="flex space-x-4">
<Truck className="mt-1" />
<div className="space-y-1 xl:max-w-lg">
<p className="text-sm">Transfer project to another organization</p>
<p className="text-sm text-foreground-light">
To transfer projects, the owner must be a member of both the source and target
organizations.
</p>
</div>
</div>
<div>
<TransferProjectButton />
</div>
</div>
</CardContent>
</Card>
</PageSectionContent>
</PageSection>
)
}