Add license text

This commit is contained in:
Julia Friesel
2018-12-23 18:36:39 +01:00
parent 27b4a454ec
commit 4671a2e337
5 changed files with 40 additions and 3 deletions
+2 -1
View File
@@ -3,7 +3,8 @@ import NfpSettings from './nfp-settings'
import DataManagement from './data-management'
import Password from './password'
import About from './about'
import License from './license'
export default {
Reminders, NfpSettings, DataManagement, Password, About
Reminders, NfpSettings, DataManagement, Password, About, License
}
+22
View File
@@ -0,0 +1,22 @@
import React, { Component } from 'react'
import { View, ScrollView } from 'react-native'
import Hyperlink from 'react-native-hyperlink'
import AppText from '../app-text'
import styles from '../../styles/index'
import labels from '../../i18n/en/settings'
import replace from '../helpers/replace-url-with-text'
export default class License extends Component {
render() {
return (
<ScrollView>
<View style={styles.settingsSegment}>
<Hyperlink linkStyle={styles.link} linkText={replace}>
<AppText style={styles.settingsSegmentTitle}>{`${labels.license.title} `}</AppText>
<AppText>{`${labels.license.text} `}</AppText>
</Hyperlink>
</View>
</ScrollView>
)
}
}
+2 -1
View File
@@ -14,7 +14,8 @@ const menu = [
{title: labels.nfpSettings, component: 'NfpSettings'},
{title: labels.dataManagement, component: 'DataManagement'},
{title: labels.password, component: 'Password'},
{title: labels.about, component: 'About'}
{title: labels.about, component: 'About'},
{title: labels.license, component: 'License'}
]
export default function SettingsMenu(props) {