combine mode with avg value

This commit is contained in:
Peter Holmberg
2019-02-06 15:38:51 +01:00
parent 9d3d1bc669
commit 71cfcd58ba
5 changed files with 52 additions and 16 deletions
@@ -34,7 +34,7 @@ export class Switch extends PureComponent<Props, State> {
const switchClassName = `gf-form-switch ${switchClass} ${transparent ? 'gf-form-switch--transparent' : ''}`;
return (
<label htmlFor={labelId} className={`gf-form gf-form-switch-container ${className}`}>
<label htmlFor={labelId} className={`gf-form gf-form-switch-container ${className ? className : ''}`}>
{label && <div className={labelClassName}>{label}</div>}
<div className={switchClassName}>
<input id={labelId} type="checkbox" checked={checked} onChange={this.internalOnChange} />