combine mode with avg value
This commit is contained in:
@@ -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} />
|
||||
|
||||
Reference in New Issue
Block a user