Add license text
This commit is contained in:
@@ -3,7 +3,8 @@ import NfpSettings from './nfp-settings'
|
|||||||
import DataManagement from './data-management'
|
import DataManagement from './data-management'
|
||||||
import Password from './password'
|
import Password from './password'
|
||||||
import About from './about'
|
import About from './about'
|
||||||
|
import License from './license'
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
Reminders, NfpSettings, DataManagement, Password, About
|
Reminders, NfpSettings, DataManagement, Password, About, License
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -14,7 +14,8 @@ const menu = [
|
|||||||
{title: labels.nfpSettings, component: 'NfpSettings'},
|
{title: labels.nfpSettings, component: 'NfpSettings'},
|
||||||
{title: labels.dataManagement, component: 'DataManagement'},
|
{title: labels.dataManagement, component: 'DataManagement'},
|
||||||
{title: labels.password, component: 'Password'},
|
{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) {
|
export default function SettingsMenu(props) {
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ export const headerTitles = {
|
|||||||
DataManagement: settingsTitles.dataManagement,
|
DataManagement: settingsTitles.dataManagement,
|
||||||
Password: settingsTitles.password,
|
Password: settingsTitles.password,
|
||||||
About: settingsTitles.about,
|
About: settingsTitles.about,
|
||||||
|
License: settingsTitles.license,
|
||||||
BleedingEditView: 'Bleeding',
|
BleedingEditView: 'Bleeding',
|
||||||
TemperatureEditView: 'Temperature',
|
TemperatureEditView: 'Temperature',
|
||||||
MucusEditView: 'Mucus',
|
MucusEditView: 'Mucus',
|
||||||
|
|||||||
+13
-1
@@ -20,7 +20,8 @@ export default {
|
|||||||
dataManagement: 'Manage your data',
|
dataManagement: 'Manage your data',
|
||||||
nfpSettings: 'NFP settings',
|
nfpSettings: 'NFP settings',
|
||||||
password: 'Password',
|
password: 'Password',
|
||||||
about: 'About'
|
about: 'About',
|
||||||
|
license: 'License'
|
||||||
},
|
},
|
||||||
export: {
|
export: {
|
||||||
errors: {
|
errors: {
|
||||||
@@ -110,6 +111,17 @@ export default {
|
|||||||
title: 'About',
|
title: 'About',
|
||||||
segmentExplainer: `Please note that your data is stored locally on your phone and not on a server. We want to ensure that you stay in control of your own data. If you are planning to switch or reset your phone, please remember to export your data before doing so. You can reinstall the app afterwards and import your data.\n\nIf you encounter any technical issues, don't hesitate to contact via ${links.email.url}. You can also contribute to the code base on ${links.gitlab.url}`,
|
segmentExplainer: `Please note that your data is stored locally on your phone and not on a server. We want to ensure that you stay in control of your own data. If you are planning to switch or reset your phone, please remember to export your data before doing so. You can reinstall the app afterwards and import your data.\n\nIf you encounter any technical issues, don't hesitate to contact via ${links.email.url}. You can also contribute to the code base on ${links.gitlab.url}`,
|
||||||
},
|
},
|
||||||
|
license: {
|
||||||
|
title: 'drip is an open-source cycle tracking app',
|
||||||
|
text: `Copyright (C) 2019 Bloody Health GbR
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details: https://www.gnu.org/licenses/
|
||||||
|
|
||||||
|
You can contact us by email at bloodyhealth@mailbox.com.`
|
||||||
|
},
|
||||||
preOvu: {
|
preOvu: {
|
||||||
title: 'Infertile days at cycle start',
|
title: 'Infertile days at cycle start',
|
||||||
note: `drip applies NFP's rules for calculating infertile days at the start of the cycle (see the ${links.wiki.url} for more info). However, drip does not currently apply the so called 20-day-rule, which determines infertile days at the cycle start from past cycle lengths in case no past symptothermal info is available.`
|
note: `drip applies NFP's rules for calculating infertile days at the start of the cycle (see the ${links.wiki.url} for more info). However, drip does not currently apply the so called 20-day-rule, which determines infertile days at the cycle start from past cycle lengths in case no past symptothermal info is available.`
|
||||||
|
|||||||
Reference in New Issue
Block a user