diff --git a/locales/en.json b/locales/en.json index 2b7acc7..e13be69 100644 --- a/locales/en.json +++ b/locales/en.json @@ -70,7 +70,6 @@ "modal": { "enableNotifications": "Notify me", "disableNotifications": "Stop notifications", - "ok": "OK", "cancel": "Cancel", "finished": "This machine is finished. If you started it, you can get back your laundry.", "ready": "This machine is empty and ready to use.", diff --git a/locales/fr.json b/locales/fr.json index 8d7d17b..d0d2ea3 100644 --- a/locales/fr.json +++ b/locales/fr.json @@ -70,7 +70,6 @@ "modal": { "enableNotifications": "Me Notifier", "disableNotifications": "Désactiver les notifications", - "ok": "OK", "cancel": "Annuler", "finished": "Cette machine est terminée. Si tu l'as démarrée, tu peux récupérer ton linge.", "ready": "Cette machine est vide et prête à être utilisée.", diff --git a/src/screens/Proxiwash/ProxiwashScreen.tsx b/src/screens/Proxiwash/ProxiwashScreen.tsx index 38a5f70..00b7d5e 100644 --- a/src/screens/Proxiwash/ProxiwashScreen.tsx +++ b/src/screens/Proxiwash/ProxiwashScreen.tsx @@ -200,11 +200,7 @@ class ProxiwashScreen extends React.Component { */ getModalContent(title: string, item: ProxiwashMachineType, isDryer: boolean) { const {props, state} = this; - let button: {text: string; icon: string; onPress: () => void} = { - text: i18n.t('screens.proxiwash.modal.ok'), - icon: '', - onPress: () => undefined, - }; + let button: {text: string; icon: string; onPress: () => void} | undefined; let message = this.modalStateStrings[item.state]; const onPress = () => this.onSetupNotificationsPress(item); if (item.state === MachineStates.RUNNING) { @@ -247,7 +243,7 @@ class ProxiwashScreen extends React.Component { {message} - {button.onPress ? ( + {button ? (