mirror of
https://github.com/supabase/supabase.git
synced 2026-06-12 17:27:58 +08:00
## Context Enforce `noUnusedLocals` and `noUnusedParameters` in tsconfig.json + fix all related issues
50 lines
1.5 KiB
TypeScript
50 lines
1.5 KiB
TypeScript
import { Truck } from 'lucide-react'
|
|
import { Card, CardContent } from 'ui'
|
|
import {
|
|
PageSection,
|
|
PageSectionContent,
|
|
PageSectionMeta,
|
|
PageSectionSummary,
|
|
PageSectionTitle,
|
|
} from 'ui-patterns/PageSection'
|
|
|
|
import { TransferProjectButton } from './TransferProjectButton'
|
|
import { useSelectedProjectQuery } from '@/hooks/misc/useSelectedProject'
|
|
|
|
export const TransferProjectPanel = () => {
|
|
const { data: project } = useSelectedProjectQuery()
|
|
|
|
if (project === undefined) return null
|
|
|
|
return (
|
|
<PageSection id="transfer-project">
|
|
<PageSectionMeta>
|
|
<PageSectionSummary>
|
|
<PageSectionTitle>Transfer project</PageSectionTitle>
|
|
</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>
|
|
)
|
|
}
|