Skip to content

Commit

Permalink
[confirm] Flatten provided props
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernardstanislas committed Dec 14, 2015
1 parent 0d135e7 commit 108f756
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/application/confirm.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ export default function confirm(ContentComponent, props) {
confirmConfig: {
isVisible: true,
Content: ContentComponent,
contentProps: props,
handleCancel(err) {
dispatch({data: {confirmConfig: {isVsible: false, Content: null}}, type: 'update'});
//Maybe there is a little async problem.
Expand All @@ -22,7 +21,8 @@ export default function confirm(ContentComponent, props) {
handleConfirm(data) {
dispatch({data: {confirmConfig: {isVsible: false, Content: null}}, type: 'update'});
resolve(data);
}
},
...props
}
},
type: 'update'
Expand Down

0 comments on commit 108f756

Please sign in to comment.