File tree Expand file tree Collapse file tree 1 file changed +28
-16
lines changed
Expand file tree Collapse file tree 1 file changed +28
-16
lines changed Original file line number Diff line number Diff line change 11import { Button } from './button' ;
2- import {
3- Dialog ,
4- DialogContent ,
5- DialogFooter ,
6- DialogDescription ,
7- } from './radix-compatibility' ;
2+ // import {
3+ // Dialog,
4+ // DialogContent,
5+ // DialogFooter,
6+ // DialogDescription,
7+ // } from './radix-compatibility';
88
99interface ConfirmationDialogProps {
1010 isOpen : boolean ;
@@ -27,32 +27,44 @@ export function ConfirmationDialog({
2727 if ( ! isOpen ) {
2828 return null ;
2929 }
30-
30+
3131 return (
32- < div className = " fixed inset-0 z-50 flex items-center justify-center overflow-hidden bg-black/50" >
33- < div className = " bg-white max-w-md rounded-lg shadow-lg overflow-hidden" >
32+ < div className = ' fixed inset-0 z-50 flex items-center justify-center overflow-hidden bg-black/50' >
33+ < div className = ' bg-white max-w-md rounded-lg shadow-lg overflow-hidden' >
3434 { /* Header */ }
35- < div className = " bg-brand-pink p-3 flex items-center" >
36- < h2 className = " text-lg font-bold text-white" > { title } </ h2 >
35+ < div className = ' bg-brand-pink p-3 flex items-center' >
36+ < h2 className = ' text-lg font-bold text-white' > { title } </ h2 >
3737 </ div >
38-
38+
3939 { /* Body */ }
4040 < div className = 'bg-gray-50 p-4' >
4141 < p className = 'text-sm text-gray-800' > { description } </ p >
4242 </ div >
43-
43+
4444 { /* Footer */ }
4545 < div className = 'p-4 bg-gray-50 flex justify-end space-x-2' >
4646 { singleButton ? (
47- < Button variant = 'default' onClick = { onConfirm } className = "inline-flex items-center" >
47+ < Button
48+ variant = 'default'
49+ onClick = { onConfirm }
50+ className = 'inline-flex items-center'
51+ >
4852 < span > OK</ span >
4953 </ Button >
5054 ) : (
5155 < >
52- < Button variant = 'outline' onClick = { onClose } className = "inline-flex items-center" >
56+ < Button
57+ variant = 'outline'
58+ onClick = { onClose }
59+ className = 'inline-flex items-center'
60+ >
5361 < span > Cancel</ span >
5462 </ Button >
55- < Button variant = 'destructive' onClick = { onConfirm } className = "inline-flex items-center" >
63+ < Button
64+ variant = 'destructive'
65+ onClick = { onConfirm }
66+ className = 'inline-flex items-center'
67+ >
5668 < span > Delete</ span >
5769 </ Button >
5870 </ >
You can’t perform that action at this time.
0 commit comments