updates
This commit is contained in:
@@ -59,7 +59,9 @@ export function useFormDialog(paramKey?: string) {
|
||||
}
|
||||
|
||||
export default function FormDialog(props: {
|
||||
children: (resourceId: string | null) => React.ReactNode
|
||||
children: (resourceId: string | null,
|
||||
ctx: { open: (resourceId?: string) => void, close: () => void,isOpen:boolean }
|
||||
) => React.ReactNode
|
||||
title: string
|
||||
paramKey?: string
|
||||
classNames?: {
|
||||
@@ -85,7 +87,7 @@ export default function FormDialog(props: {
|
||||
</DialogTitle>
|
||||
</DialogHeader>
|
||||
<ScrollArea className={`max-h-[80vh] px-4 ${cn(props.classNames?.scrollArea)}`}>
|
||||
{props.children(resourceId)}
|
||||
{props.children(resourceId, { open, close , isOpen})}
|
||||
</ScrollArea>
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
|
||||
Reference in New Issue
Block a user