moves labels to copy folder
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Alert } from 'react-native'
|
||||
import { shared as sharedLabels } from '../labels'
|
||||
import { shared as sharedLabels } from '../../copy/en/labels'
|
||||
|
||||
export default function alertError(msg) {
|
||||
Alert.alert(sharedLabels.errorTitle, msg)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import Share from 'react-native-share'
|
||||
import getDataAsCsvDataUri from '../../lib/import-export/export-to-csv'
|
||||
import alertError from './alert-error'
|
||||
import { settings as labels } from '../labels'
|
||||
import { settings as labels } from '../../copy/en/labels'
|
||||
|
||||
export default async function openShareDialogAndExport() {
|
||||
let data
|
||||
|
||||
@@ -2,7 +2,7 @@ import { Alert } from 'react-native'
|
||||
import { DocumentPicker, DocumentPickerUtil } from 'react-native-document-picker'
|
||||
import rnfs from 'react-native-fs'
|
||||
import importCsv from '../../lib/import-export/import-from-csv'
|
||||
import { settings as labels, shared as sharedLabels } from '../labels'
|
||||
import { settings as labels, shared as sharedLabels } from '../../copy/en/labels'
|
||||
import alertError from './alert-error'
|
||||
|
||||
export default function openImportDialogAndImport() {
|
||||
|
||||
@@ -5,7 +5,7 @@ import {
|
||||
ScrollView,
|
||||
} from 'react-native'
|
||||
import styles from '../../styles/index'
|
||||
import { settings as labels } from '../labels'
|
||||
import { settings as labels } from '../../copy/en/labels'
|
||||
import AppText from '../app-text'
|
||||
import TempReminderPicker from './temp-reminder-picker'
|
||||
import PeriodReminderPicker from './period-reminder'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Alert } from 'react-native'
|
||||
import { openDb } from '../../../db'
|
||||
import { shared } from '../../labels'
|
||||
import { shared } from '../../../copy/en/labels'
|
||||
|
||||
export default async function checkPassword({hash, onCancel, onTryAgain }) {
|
||||
const connected = await openDb(hash)
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
import nodejs from 'nodejs-mobile-react-native'
|
||||
import AppText from '../../app-text'
|
||||
import styles from '../../../styles'
|
||||
import { settings as labels } from '../../labels'
|
||||
import { settings as labels } from '../../../copy/en/settings'
|
||||
import { requestHash, changeEncryptionAndRestartApp } from '../../../db'
|
||||
import PasswordField from './password-field'
|
||||
import showBackUpReminder from './show-backup-reminder'
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
import nodejs from 'nodejs-mobile-react-native'
|
||||
import AppText from '../../app-text'
|
||||
import styles from '../../../styles'
|
||||
import { settings as labels } from '../../labels'
|
||||
import { settings as labels } from '../../../copy/en/settings'
|
||||
import { requestHash, changeEncryptionAndRestartApp } from '../../../db'
|
||||
import PasswordField from './password-field'
|
||||
import showBackUpReminder from './show-backup-reminder'
|
||||
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
hasEncryptionObservable
|
||||
} from '../../../local-storage'
|
||||
import styles from '../../../styles/index'
|
||||
import { settings as labels } from '../../labels'
|
||||
import { settings as labels } from '../../../copy/en/labels'
|
||||
|
||||
export default class PasswordSetting extends Component {
|
||||
constructor(props) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Alert } from 'react-native'
|
||||
import { settings as labels, shared } from '../../labels'
|
||||
import { settings as labels, shared } from '../../../copy/en/labels'
|
||||
|
||||
export default function showBackUpReminder(okHandler, isDelete) {
|
||||
let title, message
|
||||
|
||||
@@ -6,7 +6,7 @@ import {
|
||||
import nodejs from 'nodejs-mobile-react-native'
|
||||
import AppText from '../../app-text'
|
||||
import styles from '../../../styles'
|
||||
import { settings as labels, shared } from '../../labels'
|
||||
import { settings as labels, shared } from '../../../copy/en/labels'
|
||||
import { requestHash, changeEncryptionAndRestartApp } from '../../../db'
|
||||
import PasswordField from './password-field'
|
||||
import showBackUpReminder from './show-backup-reminder'
|
||||
|
||||
@@ -9,7 +9,7 @@ import {
|
||||
savePeriodReminder
|
||||
} from '../../local-storage'
|
||||
import styles from '../../styles/index'
|
||||
import { settings as labels } from '../labels'
|
||||
import { settings as labels } from '../../copy/en/labels'
|
||||
|
||||
export default class PeriodReminderPicker extends Component {
|
||||
constructor(props) {
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
saveTempReminder
|
||||
} from '../../local-storage'
|
||||
import styles from '../../styles/index'
|
||||
import { settings as labels } from '../labels'
|
||||
import { settings as labels } from '../../copy/en/labels'
|
||||
import padWithZeros from '../helpers/pad-time-with-zeros'
|
||||
|
||||
export default class TempReminderPicker extends Component {
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
saveTempScale,
|
||||
} from '../../local-storage'
|
||||
import { secondaryColor } from '../../styles/index'
|
||||
import { settings as labels } from '../labels'
|
||||
import { settings as labels } from '../../copy/en/labels'
|
||||
import config from '../../config'
|
||||
import alertError from './alert-error'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user