Gaëtan Renaudeau
6 years ago
No known key found for this signature in database
GPG Key ID: 7B66B85F042E5451
1 changed files with
4 additions and
2 deletions
-
src/components/base/Modal/RepairModal.js
|
|
@ -147,7 +147,7 @@ class RepairModal extends PureComponent<Props, *> { |
|
|
|
} |
|
|
|
|
|
|
|
onChange = selectedOption => { |
|
|
|
this.setState({ selectedOption }) |
|
|
|
this.setState({ selectedOption: selectedOption || options[0] }) |
|
|
|
} |
|
|
|
|
|
|
|
renderOption = option => (option && this.props.t(`settings.repairDevice.${option.value}`)) || null |
|
|
@ -193,8 +193,10 @@ class RepairModal extends PureComponent<Props, *> { |
|
|
|
)} |
|
|
|
|
|
|
|
{!isLoading && !error ? ( |
|
|
|
<Box py={2} px={4}> |
|
|
|
<Box py={2} px={5}> |
|
|
|
<Select |
|
|
|
isSearchable={false} |
|
|
|
isClearable={false} |
|
|
|
value={selectedOption} |
|
|
|
onChange={this.onChange} |
|
|
|
autoFocus |
|
|
|