Fix modal rendering and simplify

This commit is contained in:
Lukas Martinelli
2016-12-22 16:51:18 +01:00
parent e32f3bb06e
commit b874d9864d
3 changed files with 43 additions and 41 deletions

View File

@@ -31,7 +31,7 @@ class Modal extends React.Component {
{this.props.title}
<span style={{flexGrow: 1}} />
<a
onClick={this.props.toggleOpen(false)}
onClick={() => this.props.onOpenToggle(false)}
style={{ cursor: 'pointer' }} >
<CloseIcon />
</a>