chore: format
This commit is contained in:
parent
78ea172428
commit
b4abe731c5
@ -50,7 +50,10 @@ export default ({
|
||||
<Col xs={7} sm={7} md={6} lg={6}>
|
||||
<FormGroup name="filter" reduxForm>
|
||||
<FormLabel>Filter instances</FormLabel>
|
||||
<Input placeholder="Search for name, state, tags, etc..." fluid />
|
||||
<Input
|
||||
placeholder="Search for name, state, tags, etc..."
|
||||
fluid
|
||||
/>
|
||||
</FormGroup>
|
||||
</Col>
|
||||
<Col xs={5} sm={3} lg={3}>
|
||||
|
@ -145,17 +145,20 @@ export default compose(
|
||||
'start-snap': () => null
|
||||
};
|
||||
|
||||
const clearSelected = () => dispatch(ids.map(id => {
|
||||
const form = 'instance-list';
|
||||
const field = get(find(instances, ['id', id]), 'name');
|
||||
const value = false;
|
||||
const clearSelected = () =>
|
||||
dispatch(
|
||||
ids.map(id => {
|
||||
const form = 'instance-list';
|
||||
const field = get(find(instances, ['id', id]), 'name');
|
||||
const value = false;
|
||||
|
||||
if (!field) {
|
||||
return;
|
||||
}
|
||||
if (!field) {
|
||||
return;
|
||||
}
|
||||
|
||||
return change(form, field, value);
|
||||
}));
|
||||
return change(form, field, value);
|
||||
})
|
||||
);
|
||||
|
||||
const fn = types[name];
|
||||
return fn && fn().then(clearSelected);
|
||||
|
@ -130,7 +130,12 @@ const ToggleBase = ({ container = null, type = 'radio' }) =>
|
||||
|
||||
const toggle = (
|
||||
<InnerContainer {...types} type={type}>
|
||||
<StyledInput {...rest} id={newValue.id} type={type} checked={checked} />
|
||||
<StyledInput
|
||||
{...rest}
|
||||
id={newValue.id}
|
||||
type={type}
|
||||
checked={checked}
|
||||
/>
|
||||
<Label
|
||||
{...types}
|
||||
htmlFor={newValue.id}
|
||||
|
Loading…
Reference in New Issue
Block a user