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