|
|
@ -20,10 +20,11 @@ const iconStyle = {
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class AdvancedOptionToggle extends React.PureComponent {
|
|
|
|
class AdvancedOptionToggle extends React.PureComponent {
|
|
|
|
static PropTypes = {
|
|
|
|
|
|
|
|
|
|
|
|
static propTypes = {
|
|
|
|
onChange: PropTypes.func.isRequired,
|
|
|
|
onChange: PropTypes.func.isRequired,
|
|
|
|
active: PropTypes.bool.isRequired,
|
|
|
|
active: PropTypes.bool.isRequired,
|
|
|
|
key: PropTypes.string.isRequired,
|
|
|
|
name: PropTypes.string.isRequired,
|
|
|
|
shortText: PropTypes.string.isRequired,
|
|
|
|
shortText: PropTypes.string.isRequired,
|
|
|
|
longText: PropTypes.string.isRequired,
|
|
|
|
longText: PropTypes.string.isRequired,
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -35,7 +36,7 @@ class AdvancedOptionToggle extends React.PureComponent {
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
const { active, shortText, longText } = this.props;
|
|
|
|
const { active, shortText, longText } = this.props;
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<div role='button' className='advanced-options-dropdown__option' onClick={this.onToggle}>
|
|
|
|
<div role='button' tabIndex='0' className='advanced-options-dropdown__option' onClick={this.onToggle}>
|
|
|
|
<div className='advanced-options-dropdown__option__toggle'>
|
|
|
|
<div className='advanced-options-dropdown__option__toggle'>
|
|
|
|
<Toggle checked={active} onChange={this.onToggle} />
|
|
|
|
<Toggle checked={active} onChange={this.onToggle} />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
@ -46,6 +47,7 @@ class AdvancedOptionToggle extends React.PureComponent {
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@injectIntl
|
|
|
|
@injectIntl
|
|
|
|