Skip to content

Instantly share code, notes, and snippets.

@gtan66
Created February 2, 2016 19:00
Show Gist options
  • Save gtan66/4c2fb4c1a46f2d796563 to your computer and use it in GitHub Desktop.
Save gtan66/4c2fb4c1a46f2d796563 to your computer and use it in GitHub Desktop.
export default React.createClass({
rightButtons() {
return [
{ text: "Close", type: "secondary", callback: this.props.onDismiss }
];
},
componentDidMount() {
JumioClient.setVars({
authorizationToken: this.props.transactionToken
}).initVerify("JUMIOIFRAME");
},
render() {
return (
<Modal onDismiss={this.props.onDismiss}
rightButtons={this.rightButtons()}
>
<div id="JUMIOIFRAME"></div>
</Modal>
);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment