@onehat/ui 0.3.201 → 0.3.202
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -40,6 +40,7 @@ export default function withFilters(WrappedComponent) {
|
|
|
40
40
|
searchAllText = true,
|
|
41
41
|
showLabels = true,
|
|
42
42
|
showFilterSelector = true,
|
|
43
|
+
showClearFiltersButton = true,
|
|
43
44
|
defaultFilters = [], // likely a list of field names, possibly could be of shape below
|
|
44
45
|
customFilters = [], // of shape: { title, type, field, value, getRepoFilters(value) }
|
|
45
46
|
minFilters = 3,
|
|
@@ -433,15 +434,15 @@ export default function withFilters(WrappedComponent) {
|
|
|
433
434
|
</ScrollView>
|
|
434
435
|
</Row>
|
|
435
436
|
<Row flex={hasFilters ? null : 1} alignItems="center" alignSelf="flex-end">
|
|
436
|
-
<IconButton
|
|
437
|
-
key="
|
|
437
|
+
{showClearFiltersButton && <IconButton
|
|
438
|
+
key="clearFiltersBtn"
|
|
438
439
|
_icon={{
|
|
439
440
|
as: Ban,
|
|
440
441
|
}}
|
|
441
442
|
ml={1}
|
|
442
443
|
onPress={onClearFilters}
|
|
443
444
|
tooltip="Clear all filters"
|
|
444
|
-
/>
|
|
445
|
+
/>}
|
|
445
446
|
{showFilterSelector && !isUsingCustomFilters && <IconButton
|
|
446
447
|
key="gear"
|
|
447
448
|
_icon={{
|