Renames unset to delete

This commit is contained in:
emelko
2019-02-13 16:37:33 +01:00
parent 76b9c1943d
commit bca86f3996
2 changed files with 6 additions and 6 deletions
@@ -22,16 +22,16 @@ export default class ActionButtonFooter extends Component {
const navigateToOverView = () => navigate('CycleDay', {date}) const navigateToOverView = () => navigate('CycleDay', {date})
const buttons = [ const buttons = [
{ {
title: labels.unset, title: labels.delete,
action: () => { action: () => {
Alert.alert( Alert.alert(
labels.areYouSureTitle, labels.areYouSureTitle,
labels.areYouSureToUnset, labels.areYouSureToDelete,
[{ [{
text: labels.cancel, text: labels.cancel,
style: 'cancel' style: 'cancel'
}, { }, {
text: labels.reallyUnsetData, text: labels.reallyDeleteData,
onPress: () => { onPress: () => {
saveSymptom(symptom, date) saveSymptom(symptom, date)
navigateToOverView() navigateToOverView()
+3 -3
View File
@@ -126,9 +126,9 @@ export const noteExplainer = "Anything you want to add for the day?"
export const sharedDialogs = { export const sharedDialogs = {
cancel: 'Cancel', cancel: 'Cancel',
areYouSureTitle: 'Are you sure?', areYouSureTitle: 'Are you sure?',
areYouSureToUnset: 'Are you sure you want to delete this entry?', areYouSureToDelete: 'Are you sure you want to delete this entry?',
reallyUnsetData: 'Yes, I am sure', reallyDeleteData: 'Yes, I am sure',
save: 'Save', save: 'Save',
unset: 'Delete', delete: 'Delete',
disabledInfo: 'There is some data missing' disabledInfo: 'There is some data missing'
} }