summaryrefslogtreecommitdiffhomepage
path: root/app/components/SettingsHeader.js
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2018-07-18 15:07:37 +0200
committerAndrej Mihajlov <and@mullvad.net>2018-08-15 17:39:38 +0200
commit71592249b2dd669b6f24f37bfb7b0f4e43b74998 (patch)
treea6097dc7e5d94d06e99c65fdfe160e824395f50c /app/components/SettingsHeader.js
parente84e87f4ce5a8c242f756566cdc6fb59a45f7bea (diff)
downloadmullvadvpn-71592249b2dd669b6f24f37bfb7b0f4e43b74998.tar.xz
mullvadvpn-71592249b2dd669b6f24f37bfb7b0f4e43b74998.zip
Add workspaces
Diffstat (limited to 'app/components/SettingsHeader.js')
-rw-r--r--app/components/SettingsHeader.js61
1 files changed, 0 insertions, 61 deletions
diff --git a/app/components/SettingsHeader.js b/app/components/SettingsHeader.js
deleted file mode 100644
index c1791d6fc0..0000000000
--- a/app/components/SettingsHeader.js
+++ /dev/null
@@ -1,61 +0,0 @@
-// @flow
-
-import * as React from 'react';
-import { Component, Text, View, Styles } from 'reactxp';
-import { colors } from '../config';
-
-const styles = {
- header: {
- default: Styles.createViewStyle({
- flexGrow: 0,
- flexShrink: 0,
- flexBasis: 'auto',
- paddingTop: 16,
- paddingRight: 24,
- paddingLeft: 24,
- paddingBottom: 24,
- }),
- linux: Styles.createViewStyle({
- WebkitAppRegion: 'drag',
- }),
- },
- title: Styles.createTextStyle({
- fontFamily: 'DINPro',
- fontSize: 32,
- fontWeight: '900',
- lineHeight: 40,
- color: colors.white,
- }),
- subtitle: Styles.createTextStyle({
- marginTop: 4,
- fontFamily: 'Open Sans',
- fontSize: 13,
- fontWeight: '600',
- overflow: 'visible',
- color: colors.white80,
- lineHeight: 20,
- letterSpacing: -0.2,
- }),
-};
-
-export default class SettingsHeader extends Component {
- render() {
- return (
- <View style={[styles.header.default, styles.header[process.platform], this.props.style]}>
- {this.props.children}
- </View>
- );
- }
-}
-
-export class HeaderTitle extends Component {
- render() {
- return <Text style={[styles.title]}>{this.props.children}</Text>;
- }
-}
-
-export class HeaderSubTitle extends Component {
- render() {
- return <Text style={[styles.subtitle]}>{this.props.children}</Text>;
- }
-}