Skip to content

Commit 40ea77c

Browse files
committed
wrap an active filter button in the closable touchable
1 parent 94df8dd commit 40ea77c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

modules/filter/active-filter-button.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ function ActiveFilterButton({filter, label, onRemove, style, theme}: Props) {
3333
const iconColor = white
3434

3535
return (
36-
<View style={[styles.badge, background, style]}>
37-
<Text style={[styles.text, foreground]}>{label}</Text>
38-
<TouchableWithoutFeedback onPress={() => onRemove(filter)}>
36+
<TouchableWithoutFeedback onPress={() => onRemove(filter)}>
37+
<View style={[styles.badge, background, style]}>
38+
<Text style={[styles.text, foreground]}>{label}</Text>
3939
<Icon color={iconColor} name={iconName} size={20} />
40-
</TouchableWithoutFeedback>
41-
</View>
40+
</View>
41+
</TouchableWithoutFeedback>
4242
)
4343
}
4444

0 commit comments

Comments
 (0)