fix prettier issues

This commit is contained in:
John Mitchell
2020-01-14 13:28:53 -05:00
parent 1b726a1b2f
commit 9ecb704e10
3 changed files with 82 additions and 80 deletions

View File

@@ -210,7 +210,8 @@ class Search extends React.Component {
<NoOptionDropdown>{searchColumnName}</NoOptionDropdown>
)}
</DataToolbarItem>
{columns.map(({ key, name, options, isBoolean, booleanLabels = {} }) => (
{columns.map(
({ key, name, options, isBoolean, booleanLabels = {} }) => (
<DataToolbarFilter
chips={chipsByKey[key] ? chipsByKey[key].chips : []}
deleteChip={(unusedKey, val) => {
@@ -286,7 +287,8 @@ class Search extends React.Component {
</InputGroup>
)}
</DataToolbarFilter>
))}
)
)}
</DataToolbarGroup>
);
}

View File

@@ -188,9 +188,9 @@ function InventoryGroupsList({ i18n, location, match }) {
key: 'parents__isnull',
isBoolean: true,
booleanLabels: {
"true": i18n._(t`Show Only Root Groups`),
"false": i18n._(t`Show All Groups`)
}
true: i18n._(t`Show Only Root Groups`),
false: i18n._(t`Show All Groups`),
},
},
{
name: i18n._(t`Created By (Username)`),

View File

@@ -258,8 +258,8 @@ export const SearchColumns = arrayOf(
isDefault: bool,
isBoolean: bool,
booleanLabels: shape({
"true": string.isRequired,
"false": string.isRequired
true: string.isRequired,
false: string.isRequired,
}),
options: arrayOf(arrayOf(string, string)),
})