From 89454c3cc4758be3924255433770d4e1647dd576 Mon Sep 17 00:00:00 2001 From: Yoga Pangestu Date: Mon, 31 Aug 2026 15:26:02 +0700 Subject: [PATCH] feat: enhance FormDialog component with improved layout and utility class integration --- resources/js/components/form-dialog.tsx | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/resources/js/components/form-dialog.tsx b/resources/js/components/form-dialog.tsx index faf6e35..1069f38 100644 --- a/resources/js/components/form-dialog.tsx +++ b/resources/js/components/form-dialog.tsx @@ -9,6 +9,7 @@ import { DialogHeader, DialogTitle, } from '@/components/ui/dialog'; +import { cn } from '@/lib/utils'; type FormDialogProps = { open: boolean; @@ -44,23 +45,29 @@ export function FormDialog({ }: FormDialogProps) { return ( - +
{({ errors, processing }) => ( <> - + {title} -
+
{typeof children === 'function' ? children({ errors, processing }) : children}
- +