Remove binding on prop passed callbacks

This commit is contained in:
Fabio Berger
2017-12-19 10:39:25 +01:00
parent 684542d073
commit 1f85d31663
2 changed files with 4 additions and 4 deletions

View File

@@ -17,11 +17,11 @@ export function PortalDisclaimerDialog(props: PortalDisclaimerDialogProps) {
<FlatButton
key="portalAgree"
label="I Agree"
onTouchTap={props.onToggleDialog.bind(this)}
onTouchTap={props.onToggleDialog}
/>,
]}
open={props.isOpen}
onRequestClose={props.onToggleDialog.bind(this)}
onRequestClose={props.onToggleDialog}
autoScrollBodyContent={true}
modal={true}
>

View File

@@ -17,11 +17,11 @@ export function WrappedEthSectionNoticeDialog(props: WrappedEthSectionNoticeDial
<FlatButton
key="acknowledgeWrapEthSection"
label="Sounds good"
onTouchTap={props.onToggleDialog.bind(this)}
onTouchTap={props.onToggleDialog}
/>,
]}
open={props.isOpen}
onRequestClose={props.onToggleDialog.bind(this)}
onRequestClose={props.onToggleDialog}
autoScrollBodyContent={true}
modal={true}
>