From 1494b4bdfb04ccacd9059d443b7ab98d06ccbde1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lloren=C3=A7?= Date: Fri, 20 Dec 2024 12:11:44 +0100 Subject: [PATCH] Rename field --- src/frontend/src/flows/addDevice/addCurrentDevice.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/frontend/src/flows/addDevice/addCurrentDevice.ts b/src/frontend/src/flows/addDevice/addCurrentDevice.ts index 5d71c40d2f..fb8d4f465c 100644 --- a/src/frontend/src/flows/addDevice/addCurrentDevice.ts +++ b/src/frontend/src/flows/addDevice/addCurrentDevice.ts @@ -5,11 +5,11 @@ import { TemplateResult } from "lit-html"; import copyJson from "./addCurrentDevice.json"; const addCurrentDeviceTemplate = ({ - replace, + add, skip, i18n, }: { - replace: () => void; + add: () => void; skip: () => void; i18n: I18n; }): TemplateResult => { @@ -18,13 +18,13 @@ const addCurrentDeviceTemplate = ({ return infoScreenTemplate({ cancel: skip, cancelText: copy.skip, - next: replace, + next: add, nextText: copy.replace_origin, title: copy.title, paragraph: copy.paragraph, scrollToTop: true, icon: "info", - pageId: "replace-current-device-origin", + pageId: "add-current-device", label: copy.label_icon, }); }; @@ -39,7 +39,7 @@ export const addCurrentDevice = (): Promise<{ return new Promise((resolve) => addCurrentDevicePage({ i18n: new I18n(), - replace: () => resolve({ action: "add-current-device" }), + add: () => resolve({ action: "add-current-device" }), skip: () => resolve({ action: "skip" }), }) );