Browse Source

Polishes

gre-patch-1
Gaëtan Renaudeau 6 years ago
parent
commit
617131a4ee
No known key found for this signature in database GPG Key ID: 7B66B85F042E5451
  1. 6
      src/components/base/Modal/RepairModal.js

6
src/components/base/Modal/RepairModal.js

@ -147,7 +147,7 @@ class RepairModal extends PureComponent<Props, *> {
} }
onChange = selectedOption => { onChange = selectedOption => {
this.setState({ selectedOption }) this.setState({ selectedOption: selectedOption || options[0] })
} }
renderOption = option => (option && this.props.t(`settings.repairDevice.${option.value}`)) || null renderOption = option => (option && this.props.t(`settings.repairDevice.${option.value}`)) || null
@ -193,8 +193,10 @@ class RepairModal extends PureComponent<Props, *> {
)} )}
{!isLoading && !error ? ( {!isLoading && !error ? (
<Box py={2} px={4}> <Box py={2} px={5}>
<Select <Select
isSearchable={false}
isClearable={false}
value={selectedOption} value={selectedOption}
onChange={this.onChange} onChange={this.onChange}
autoFocus autoFocus

Loading…
Cancel
Save