diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2018-04-16 12:01:39 +0200 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2018-04-16 12:01:39 +0200 |
| commit | c92ea97d9180fe05ab1adb35a4af0bcb19b12ec9 (patch) | |
| tree | ddd20a989d7c5b0fc9cae12724970d69976f889c /app/components/HeaderBar.js | |
| parent | c9f2ec62790a62e674b1252a6a18dec451d17bf3 (diff) | |
| parent | 898dd74e5ac86dac2638dc26975b22a9fb0392d4 (diff) | |
| download | mullvadvpn-c92ea97d9180fe05ab1adb35a4af0bcb19b12ec9.tar.xz mullvadvpn-c92ea97d9180fe05ab1adb35a4af0bcb19b12ec9.zip | |
Merge branch 'rn-compatibility'
Diffstat (limited to 'app/components/HeaderBar.js')
| -rw-r--r-- | app/components/HeaderBar.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/app/components/HeaderBar.js b/app/components/HeaderBar.js index 50ab49d39f..6e5864aa0f 100644 --- a/app/components/HeaderBar.js +++ b/app/components/HeaderBar.js @@ -31,26 +31,26 @@ export default class HeaderBar extends Component { render() { let containerClass = [ styles['headerbar'], - styles['headerbar__' + process.platform], - styles['headerbar__style_' + this.props.style] + styles[process.platform], + styles['style_' + this.props.style] ]; if(this.props.hidden) { - containerClass.push(styles['headerbar__hidden']); + containerClass.push(styles['hidden']); } return ( <View style={ containerClass }> {!this.props.hidden ? - <View style={styles.headerbar__container} testName="headerbar__container"> - <Img style={ styles.headerbar__logo } source='logo-icon'/> - <Text style={styles.headerbar__title}>MULLVAD VPN</Text> + <View style={styles.container} testName="headerbar__container"> + <Img height={50} width={50} source='logo-icon'/> + <Text style={styles.title}>MULLVAD VPN</Text> </View> : null} {this.props.showSettings ? - <Button style={ styles.headerbar__settings } onPress={ this.props.onSettings } testName="headerbar__settings"> - <Img source='icon-settings' style={ styles.headerbar__settings_icon } /> + <Button style={ styles.settings } onPress={ this.props.onSettings } testName="headerbar__settings"> + <Img height={24} width={24} source='icon-settings' style={ styles.settings_icon } hoverStyle={ styles.settings_icon_hover }/> </Button> : null} </View> |
