Skip to content

Commit

Permalink
fix: form renderer type error (#28)
Browse files Browse the repository at this point in the history
* fix(form-dialog): form renderer type error

* fix(form-drawer): form renderer type error
  • Loading branch information
Sun79 authored Apr 18, 2024
1 parent d7f7505 commit 55234f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/components/src/form-dialog/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {

const PORTAL_TARGET_NAME = 'FormDialogFooter'

type FormDialogRenderer = VNode | ((form: Form) => VNode)
type FormDialogRenderer = VNode | ((ctx: { form: Form }) => VNode)

type ModalTitle = string | number | Component | VNode | (() => VNode)

Expand Down
2 changes: 1 addition & 1 deletion packages/components/src/form-drawer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {

const PORTAL_TARGET_NAME = 'FormDrawerFooter'

type FormDrawerRenderer = VNode | ((form: Form) => VNode)
type FormDrawerRenderer = VNode | ((ctx: { form: Form }) => VNode)

type DrawerTitle = string | number | Component | VNode | (() => VNode)

Expand Down

0 comments on commit 55234f1

Please sign in to comment.