diff options
Diffstat (limited to 'app')
| -rw-r--r-- | app/components/HeaderBar.js | 16 | ||||
| -rw-r--r-- | app/components/HeaderBarStyles.js | 6 |
2 files changed, 4 insertions, 18 deletions
diff --git a/app/components/HeaderBar.js b/app/components/HeaderBar.js index fcd7d40733..a46856eb46 100644 --- a/app/components/HeaderBar.js +++ b/app/components/HeaderBar.js @@ -10,7 +10,6 @@ import platformStyles from './HeaderBarPlatformStyles'; export type HeaderBarStyle = 'default' | 'defaultDark' | 'error' | 'success'; export type HeaderBarProps = { style: HeaderBarStyle, - hidden: boolean, showSettings: boolean, onSettings: ?() => void, }; @@ -18,7 +17,6 @@ export type HeaderBarProps = { export default class HeaderBar extends Component<HeaderBarProps> { static defaultProps: HeaderBarProps = { style: 'default', - hidden: false, showSettings: false, onSettings: null, }; @@ -30,18 +28,12 @@ export default class HeaderBar extends Component<HeaderBarProps> { styles['style_' + this.props.style], ]; - if (this.props.hidden) { - containerClass.push(styles['hidden']); - } - return ( <View style={containerClass}> - {!this.props.hidden ? ( - <View style={styles.container} testName="headerbar__container"> - <Img height={50} width={50} source="logo-icon" /> - <Text style={styles.title}>MULLVAD VPN</Text> - </View> - ) : null} + <View style={styles.container} testName="headerbar__container"> + <Img height={50} width={50} source="logo-icon" /> + <Text style={styles.title}>MULLVAD VPN</Text> + </View> {this.props.showSettings ? ( <Button diff --git a/app/components/HeaderBarStyles.js b/app/components/HeaderBarStyles.js index 5b869bc36b..7d3c94cdc9 100644 --- a/app/components/HeaderBarStyles.js +++ b/app/components/HeaderBarStyles.js @@ -14,12 +14,6 @@ export default { justifyContent: 'space-between', alignItems: 'center', }, - hidden: { - paddingTop: 24, - paddingBottom: 0, - paddingLeft: 0, - paddingRight: 0, - }, style_defaultDark: { backgroundColor: colors.darkBlue, }, |
