mirror of
https://github.com/maputnik/editor.git
synced 2026-01-04 12:30:00 +00:00
Fix modal rendering and simplify
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user