chore: format

This commit is contained in:
Sérgio Ramos 2017-10-09 14:44:26 +01:00 committed by Sérgio Ramos
parent 78ea172428
commit b4abe731c5
3 changed files with 22 additions and 11 deletions

View File

@ -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}>

View File

@ -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);

View File

@ -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}