Skip to content

Commit 3f27497

Browse files
committed
remove extra View from FilterSection hierarchy
1 parent 9fdadea commit 3f27497

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

source/views/components/filter/filter-popover.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,17 @@ export class FilterPopover extends React.PureComponent<Props, State> {
4444
isVisible={visible}
4545
onClose={() => onClosePopover(filter)}
4646
placement="bottom"
47+
popoverStyle={popoverContainer}
4748
>
48-
<View style={styles.popoverContainer}>
49-
<FilterSection filter={filter} onChange={this.onFilterChanged} />
50-
</View>
49+
<FilterSection filter={filter} onChange={this.onFilterChanged} />
5150
</Popover>
5251
)
5352
}
5453
}
5554

56-
const styles = StyleSheet.create({
57-
popoverContainer: {
58-
minWidth: 200,
59-
maxWidth: 300,
60-
},
61-
})
55+
const popoverContainer = {
56+
minWidth: 200,
57+
maxWidth: 300,
58+
}
6259

6360
const arrowStyle = {backgroundColor: c.iosLightBackground}

0 commit comments

Comments
 (0)