diff --git a/public/locales/en-US/complete-account.json b/public/locales/en-US/complete-account.json index eb7f1ca..8bc7792 100644 --- a/public/locales/en-US/complete-account.json +++ b/public/locales/en-US/complete-account.json @@ -8,5 +8,9 @@ "title": "Set up your password", "description": "Please enter a safe password so that we can encrypt your data." } + }, + "alreadyCompleted": { + "title": "Encryption already enabled", + "description": "You already have encryption enabled. Changing passwords is currently not supported." } } diff --git a/public/locales/en-US/translation.json b/public/locales/en-US/translation.json index 48e310c..bf0d437 100644 --- a/public/locales/en-US/translation.json +++ b/public/locales/en-US/translation.json @@ -28,22 +28,6 @@ }, "CompleteAccountRoute": { "forms": { - "password": { - "title": "Set up your password", - "description": "Please enter a safe password so that we can encrypt your data.", - "continueAction": "Continue", - "form": { - "password": { - "label": "Password", - "placeholder": "********" - }, - "passwordConfirm": { - "label": "Confirm Password", - "placeholder": "Re-enter your password", - "mustMatchHelperText": "Passwords do not match." - } - } - }, "available": { "title": "Encryption already enabled", "description": "You already have encryption enabled. Changing passwords is currently not supported." diff --git a/src/routes/CompleteAccountRoute.tsx b/src/routes/CompleteAccountRoute.tsx index a361946..e4db796 100644 --- a/src/routes/CompleteAccountRoute.tsx +++ b/src/routes/CompleteAccountRoute.tsx @@ -9,7 +9,7 @@ import GenerateEmailReportsForm from "~/route-widgets/CompleteAccountRoute/Gener import PasswordForm from "~/route-widgets/CompleteAccountRoute/PasswordForm" export default function CompleteAccountRoute(): ReactElement { - const {t} = useTranslation() + const {t} = useTranslation("complete-account") const {encryptionStatus} = useContext(AuthContext) const navigateToNext = useNavigateToNext() @@ -50,13 +50,11 @@ export default function CompleteAccountRoute(): ReactElement { > - {t("routes.CompleteAccountRoute.forms.available.title")} + {t("alreadyCompleted.title")} - - {t("routes.CompleteAccountRoute.forms.available.description")} - + {t("alreadyCompleted.description")}