Fix checkbox not showing status

This commit is contained in:
jirik 2017-01-16 14:58:53 +01:00
parent fab004cdfe
commit 3b7fb7ae75

View file

@ -17,7 +17,9 @@ class CheckboxInput extends React.Component {
checked={this.props.value}
/>
<div className="maputnik-checkbox-box">
<svg className="maputnik-checkbox-icon" viewBox='0 0 32 32'>
<svg style={{
display: this.props.value ? 'inline' : 'none'
}} className="maputnik-checkbox-icon" viewBox='0 0 32 32'>
<path d='M1 14 L5 10 L13 18 L27 4 L31 8 L13 26 z' />
</svg>
</div>