mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 18:05:11 +03:00
## Problem With #45211 and #45218 merged, we don't need the `_Shadcn_` suffix anymore ## Solution - [x] Remove the `_Shadcn_` suffix - [x] Update exports and imports <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Refactor** * Standardized UI component exports by removing legacy naming conventions and providing direct imports for checkbox and radio group components throughout the design system. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
34 lines
921 B
TypeScript
34 lines
921 B
TypeScript
import { Checkbox } from 'ui'
|
|
|
|
type Props = {
|
|
acknowledgedAll: boolean
|
|
setAcknowledgedAll: (value: boolean) => void
|
|
max: number
|
|
}
|
|
|
|
export const DeleteOrganizationButtonSingleAck = ({
|
|
acknowledgedAll,
|
|
setAcknowledgedAll,
|
|
max,
|
|
}: Props) => {
|
|
return (
|
|
<div className="mt-2 rounded-md border border-warning bg-warning/5 px-3 py-3">
|
|
<p className="text-sm text-foreground">
|
|
This organization contains more than {max} projects.
|
|
</p>
|
|
|
|
<div
|
|
className="mt-3 flex cursor-pointer items-center gap-2 text-sm text-foreground"
|
|
onClick={() => setAcknowledgedAll(!acknowledgedAll)}
|
|
>
|
|
<Checkbox
|
|
checked={acknowledgedAll}
|
|
onCheckedChange={(checked) => setAcknowledgedAll(checked === true)}
|
|
onClick={(e) => e.stopPropagation()}
|
|
/>
|
|
I understand that all projects will be permanently deleted.
|
|
</div>
|
|
</div>
|
|
)
|
|
}
|