Skip to content

Commit

Permalink
fix: test case
Browse files Browse the repository at this point in the history
  • Loading branch information
jhoneybee committed Aug 19, 2020
1 parent 2cf3d89 commit 8fe0f10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Dialog.tsx
Expand Up @@ -219,7 +219,7 @@ export default class Dialog extends React.Component<IDialogChildProps, any> {
bodyProps,
children,
destroyOnClose,
modalRender = (modalRenderProps: any) => <div {...modalRenderProps} />,
modalRender = originNode => originNode,
} = this.props;

let footer;
Expand Down
2 changes: 1 addition & 1 deletion tests/index.js
Expand Up @@ -53,7 +53,7 @@ describe('dialog', () => {
width={600}
height={600}
title={title}
modalRender={props => <div style={{backgroundColor: 'rgb(255, 211, 222)'}} {...props}/>}
modalRender={node => <div style={{backgroundColor: 'rgb(255, 211, 222)'}} {...node.props}/>}
onClose={onClose}
closeIcon={'test-text'}
>
Expand Down

0 comments on commit 8fe0f10

Please sign in to comment.