summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2019-09-30 16:15:42 +0200
committerAndrej Mihajlov <and@mullvad.net>2019-09-30 16:15:42 +0200
commit41e4debb5d51b811e7ba2797ef28c3573d52b9a9 (patch)
tree8896267bf5fa344245b73930e4e6799bdf9ec006
parent17831fff7347c0b201e2ab313f1f4994d832e7b6 (diff)
parent086db99ce742c68ec55ac5f49b9c4bfba1945a59 (diff)
downloadmullvadvpn-41e4debb5d51b811e7ba2797ef28c3573d52b9a9.tar.xz
mullvadvpn-41e4debb5d51b811e7ba2797ef28c3573d52b9a9.zip
Merge branch 'fix-section-titles'
-rw-r--r--gui/src/renderer/components/Selector.tsx7
1 files changed, 6 insertions, 1 deletions
diff --git a/gui/src/renderer/components/Selector.tsx b/gui/src/renderer/components/Selector.tsx
index 1bbc00ba9a..a17b960d78 100644
--- a/gui/src/renderer/components/Selector.tsx
+++ b/gui/src/renderer/components/Selector.tsx
@@ -44,7 +44,12 @@ export default class Selector<T> extends Component<ISelectorProps<T>> {
});
if (this.props.title) {
- return <Cell.Section style={[styles.section, this.props.style]}>{items}</Cell.Section>;
+ return (
+ <Cell.Section style={[styles.section, this.props.style]}>
+ <Cell.SectionTitle>{this.props.title}</Cell.SectionTitle>
+ {items}
+ </Cell.Section>
+ );
} else {
return <View style={[styles.section, this.props.style]}>{items}</View>;
}