|
@@ -7,6 +7,7 @@ export interface IProps {
|
|
|
handlePicked: (permission) => void;
|
|
handlePicked: (permission) => void;
|
|
|
value: number;
|
|
value: number;
|
|
|
disabled: boolean;
|
|
disabled: boolean;
|
|
|
|
|
+ className?: string;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
export interface OptionWithDescription {
|
|
export interface OptionWithDescription {
|
|
@@ -22,7 +23,7 @@ class DescriptionPicker extends Component<IProps, any> {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
render() {
|
|
render() {
|
|
|
- const { optionsWithDesc, handlePicked, value, disabled } = this.props;
|
|
|
|
|
|
|
+ const { optionsWithDesc, handlePicked, value, disabled, className } = this.props;
|
|
|
|
|
|
|
|
return (
|
|
return (
|
|
|
<div className="permissions-picker">
|
|
<div className="permissions-picker">
|
|
@@ -34,7 +35,7 @@ class DescriptionPicker extends Component<IProps, any> {
|
|
|
labelKey="label"
|
|
labelKey="label"
|
|
|
options={optionsWithDesc}
|
|
options={optionsWithDesc}
|
|
|
onChange={handlePicked}
|
|
onChange={handlePicked}
|
|
|
- className="width-7 gf-form-input gf-form-input--form-dropdown"
|
|
|
|
|
|
|
+ className={`width-7 gf-form-input gf-form-input--form-dropdown ${className || ''}`}
|
|
|
optionComponent={DescriptionOption}
|
|
optionComponent={DescriptionOption}
|
|
|
placeholder="Choose"
|
|
placeholder="Choose"
|
|
|
disabled={disabled}
|
|
disabled={disabled}
|