Add header titles
This commit is contained in:
@@ -2,7 +2,7 @@ import React, { Component } from 'react'
|
|||||||
import { View, ScrollView } from 'react-native'
|
import { View, ScrollView } from 'react-native'
|
||||||
import AppText from '../app-text'
|
import AppText from '../app-text'
|
||||||
import styles from '../../styles/index'
|
import styles from '../../styles/index'
|
||||||
import { settings as labels } from '../../i18n/en/settings'
|
import labels from '../../i18n/en/settings'
|
||||||
export default class AboutSection extends Component {
|
export default class AboutSection extends Component {
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { DocumentPicker, DocumentPickerUtil } from 'react-native-document-picker
|
|||||||
import rnfs from 'react-native-fs'
|
import rnfs from 'react-native-fs'
|
||||||
import importCsv from '../../../lib/import-export/import-from-csv'
|
import importCsv from '../../../lib/import-export/import-from-csv'
|
||||||
import { shared as sharedLabels } from '../../../i18n/en/labels'
|
import { shared as sharedLabels } from '../../../i18n/en/labels'
|
||||||
import { settings as labels } from '../../../i18n/en/settings'
|
import labels from '../../../i18n/en/settings'
|
||||||
import alertError from '../alert-error'
|
import alertError from '../alert-error'
|
||||||
|
|
||||||
export default function openImportDialogAndImport() {
|
export default function openImportDialogAndImport() {
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import {
|
|||||||
TouchableOpacity,
|
TouchableOpacity,
|
||||||
} from 'react-native'
|
} from 'react-native'
|
||||||
import styles from '../../../styles/index'
|
import styles from '../../../styles/index'
|
||||||
import { settings as labels } from '../../../i18n/en/settings'
|
import labels from '../../../i18n/en/settings'
|
||||||
import AppText from '../../app-text'
|
import AppText from '../../app-text'
|
||||||
import openImportDialogAndImport from './import-dialog'
|
import openImportDialogAndImport from './import-dialog'
|
||||||
import openShareDialogAndExport from './export-dialog'
|
import openShareDialogAndExport from './export-dialog'
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import {
|
|||||||
ScrollView, View
|
ScrollView, View
|
||||||
} from 'react-native'
|
} from 'react-native'
|
||||||
import styles from '../../../styles'
|
import styles from '../../../styles'
|
||||||
import { settings as labels } from '../../../i18n/en/settings'
|
import labels from '../../../i18n/en/settings'
|
||||||
import AppText from '../../app-text'
|
import AppText from '../../app-text'
|
||||||
import TempSlider from './temp-slider'
|
import TempSlider from './temp-slider'
|
||||||
import UseCervixSetting from './use-cervix'
|
import UseCervixSetting from './use-cervix'
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import {
|
|||||||
saveTempScale,
|
saveTempScale,
|
||||||
} from '../../../local-storage'
|
} from '../../../local-storage'
|
||||||
import { secondaryColor } from '../../../styles/index'
|
import { secondaryColor } from '../../../styles/index'
|
||||||
import { settings as labels } from '../../../i18n/en/settings'
|
import labels from '../../../i18n/en/settings'
|
||||||
import config from '../../../config'
|
import config from '../../../config'
|
||||||
import alertError from '../alert-error'
|
import alertError from '../alert-error'
|
||||||
|
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ import {
|
|||||||
saveUseCervix
|
saveUseCervix
|
||||||
} from '../../../local-storage'
|
} from '../../../local-storage'
|
||||||
import styles from '../../../styles/index'
|
import styles from '../../../styles/index'
|
||||||
import { settings as labels } from '../../../i18n/en/settings'
|
import labels from '../../../i18n/en/settings'
|
||||||
|
|
||||||
export default class UseCervixSetting extends Component {
|
export default class UseCervixSetting extends Component {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import {
|
|||||||
import nodejs from 'nodejs-mobile-react-native'
|
import nodejs from 'nodejs-mobile-react-native'
|
||||||
import AppText from '../../app-text'
|
import AppText from '../../app-text'
|
||||||
import styles from '../../../styles'
|
import styles from '../../../styles'
|
||||||
import { settings as labels } from '../../../i18n/en/settings'
|
import labels from '../../../i18n/en/settings'
|
||||||
import { requestHash, changeEncryptionAndRestartApp } from '../../../db'
|
import { requestHash, changeEncryptionAndRestartApp } from '../../../db'
|
||||||
import PasswordField from './password-field'
|
import PasswordField from './password-field'
|
||||||
import showBackUpReminder from './show-backup-reminder'
|
import showBackUpReminder from './show-backup-reminder'
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import {
|
|||||||
hasEncryptionObservable
|
hasEncryptionObservable
|
||||||
} from '../../../local-storage'
|
} from '../../../local-storage'
|
||||||
import styles from '../../../styles/index'
|
import styles from '../../../styles/index'
|
||||||
import { settings as labels } from '../../../i18n/en/settings'
|
import labels from '../../../i18n/en/settings'
|
||||||
|
|
||||||
export default class PasswordSetting extends Component {
|
export default class PasswordSetting extends Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Alert } from 'react-native'
|
import { Alert } from 'react-native'
|
||||||
import { shared } from '../../../i18n/en/labels'
|
import { shared } from '../../../i18n/en/labels'
|
||||||
import { settings as labels } from '../../../i18n/en/settings'
|
import labels from '../../../i18n/en/settings'
|
||||||
|
|
||||||
export default function showBackUpReminder(okHandler, isDelete) {
|
export default function showBackUpReminder(okHandler, isDelete) {
|
||||||
let title, message
|
let title, message
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ import {
|
|||||||
savePeriodReminder
|
savePeriodReminder
|
||||||
} from '../../../local-storage'
|
} from '../../../local-storage'
|
||||||
import styles from '../../../styles/index'
|
import styles from '../../../styles/index'
|
||||||
import { settings as labels } from '../../../i18n/en/settings'
|
import labels from '../../../i18n/en/settings'
|
||||||
|
|
||||||
export default class PeriodReminderPicker extends Component {
|
export default class PeriodReminderPicker extends Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import {
|
|||||||
saveTempReminder
|
saveTempReminder
|
||||||
} from '../../../local-storage'
|
} from '../../../local-storage'
|
||||||
import styles from '../../../styles/index'
|
import styles from '../../../styles/index'
|
||||||
import { settings as labels } from '../../../i18n/en/settings'
|
import labels from '../../../i18n/en/settings'
|
||||||
import padWithZeros from '../../helpers/pad-time-with-zeros'
|
import padWithZeros from '../../helpers/pad-time-with-zeros'
|
||||||
|
|
||||||
export default class TempReminderPicker extends Component {
|
export default class TempReminderPicker extends Component {
|
||||||
|
|||||||
@@ -4,10 +4,12 @@ import {
|
|||||||
ScrollView,
|
ScrollView,
|
||||||
} from 'react-native'
|
} from 'react-native'
|
||||||
import styles from '../../styles/index'
|
import styles from '../../styles/index'
|
||||||
import { settings as settingsLabels } from '../../i18n/en/settings'
|
import settingsLabels from '../../i18n/en/settings'
|
||||||
import AppText from '../app-text'
|
import AppText from '../app-text'
|
||||||
|
|
||||||
|
console.log(settingsLabels.menuTitles)
|
||||||
const labels = settingsLabels.menuTitles
|
const labels = settingsLabels.menuTitles
|
||||||
|
console.log(settingsLabels.menuTitles)
|
||||||
|
|
||||||
const menu = [
|
const menu = [
|
||||||
{title: labels.reminders, component: 'Reminders'},
|
{title: labels.reminders, component: 'Reminders'},
|
||||||
|
|||||||
+9
-1
@@ -1,3 +1,6 @@
|
|||||||
|
import labels from './settings'
|
||||||
|
const settingsTitles = labels.menuTitles
|
||||||
|
|
||||||
export const shared = {
|
export const shared = {
|
||||||
cancel: 'Cancel',
|
cancel: 'Cancel',
|
||||||
save: 'Save',
|
save: 'Save',
|
||||||
@@ -21,7 +24,12 @@ export const headerTitles = {
|
|||||||
Calendar: 'Calendar',
|
Calendar: 'Calendar',
|
||||||
Chart: 'Chart',
|
Chart: 'Chart',
|
||||||
Stats: 'Statistics',
|
Stats: 'Statistics',
|
||||||
Settings: 'Settings',
|
SettingsMenu: 'Settings',
|
||||||
|
Reminders: settingsTitles.reminders,
|
||||||
|
NfpSettings: settingsTitles.nfpSettings,
|
||||||
|
ImportExport: settingsTitles.importExport,
|
||||||
|
Password: settingsTitles.password,
|
||||||
|
About: settingsTitles.about,
|
||||||
BleedingEditView: 'Bleeding',
|
BleedingEditView: 'Bleeding',
|
||||||
TemperatureEditView: 'Temperature',
|
TemperatureEditView: 'Temperature',
|
||||||
MucusEditView: 'Mucus',
|
MucusEditView: 'Mucus',
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
export const settings = {
|
export default {
|
||||||
menuTitles: {
|
menuTitles: {
|
||||||
reminders: 'Reminders',
|
reminders: 'Reminders',
|
||||||
importExport: 'Import and Export',
|
importExport: 'Import and Export',
|
||||||
|
|||||||
Reference in New Issue
Block a user