File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { Content } from './content'
5
5
import { OverlayProps , defaultOverlayProps } from '@/packages/overlay/overlay'
6
6
import { ComponentDefaults } from '@/utils/typings'
7
7
import Overlay from '@/packages/overlay'
8
+ import { mergeProps } from '@/utils/merge-props'
8
9
9
10
interface DialogWrapProps extends OverlayProps {
10
11
visible : boolean
@@ -43,7 +44,7 @@ export const DialogWrap: FunctionComponent<
43
44
onClose,
44
45
onCancel,
45
46
onOverlayClick,
46
- } = props
47
+ } = mergeProps ( defaultDialogProps , props )
47
48
48
49
const onHandleClickOverlay = ( e : any ) => {
49
50
if ( closeOnOverlayClick && visible && e . target === e . currentTarget ) {
@@ -77,5 +78,4 @@ export const DialogWrap: FunctionComponent<
77
78
</ >
78
79
)
79
80
}
80
- DialogWrap . defaultProps = defaultDialogProps
81
81
DialogWrap . displayName = 'NutDialogWrap'
You can’t perform that action at this time.
0 commit comments