Files
supabase/apps/studio/components/interfaces/Organization/GeneralSettings/DeleteOrganizationButton.SingleAck.tsx
Gildas Garcia 416210d666 chore: remove _Shadcn_ suffix for Checkbox and Radio components (#45263)
## 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 -->
2026-04-27 11:07:06 +02:00

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>
)
}