From dcbd240cf462e7f5cc01a1bb8b0b946845ef899e Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 24 Feb 2024 23:23:39 +0100 Subject: [PATCH] name bug --- public/locales/de/translation.json | 2 ++ public/locales/en/translation.json | 2 ++ src/Components/AppRoutes/index.js | 4 ++-- src/Pages/Authentication/SignUp.js | 12 ++++++------ 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/public/locales/de/translation.json b/public/locales/de/translation.json index f9ffa48..7652e4d 100644 --- a/public/locales/de/translation.json +++ b/public/locales/de/translation.json @@ -190,6 +190,7 @@ "title": "Ausgewähltes Produkt", "products": [ { + "name": "Basic", "price": "9,99 € / Monat", "featuresCount": 9, "features": [ @@ -205,6 +206,7 @@ ] }, { + "name": "Premium", "price": "24,99 € / Monat", "featuresCount": 13, "features": [ diff --git a/public/locales/en/translation.json b/public/locales/en/translation.json index 0b53703..ca0b44c 100644 --- a/public/locales/en/translation.json +++ b/public/locales/en/translation.json @@ -190,6 +190,7 @@ "title": "Choosen product", "products": [ { + "name": "Basic", "price": "9,99 € / month", "featuresCount": 9, "features": [ @@ -205,6 +206,7 @@ ] }, { + "name": "Premium", "price": "24,99 € / month", "featuresCount": 13, "features": [ diff --git a/src/Components/AppRoutes/index.js b/src/Components/AppRoutes/index.js index 1d2772b..5467c6b 100644 --- a/src/Components/AppRoutes/index.js +++ b/src/Components/AppRoutes/index.js @@ -43,7 +43,7 @@ export function AuthenticationRoutes() { path={`${Constants.ROUTE_PATHS.AUTHENTICATION.SIGN_UP}/basic`} element={ - + } /> @@ -52,7 +52,7 @@ export function AuthenticationRoutes() { path={`${Constants.ROUTE_PATHS.AUTHENTICATION.SIGN_UP}/premium`} element={ - + } /> diff --git a/src/Pages/Authentication/SignUp.js b/src/Pages/Authentication/SignUp.js index 9765246..84ea183 100644 --- a/src/Pages/Authentication/SignUp.js +++ b/src/Pages/Authentication/SignUp.js @@ -132,10 +132,6 @@ function AccountDetails({ t, form }) { } export function ChoosenProduct({ t, paymentPlan, extra }) { - const appContext = useAppContext(); - - console.log(appContext.paymentPlanSettings); - return ( - {Constants.APP_NAME} - {appContext.paymentPlanSettings.name} + {Constants.APP_NAME} -{" "} + {t(`authentication.signUp.choosenProduct.products.${paymentPlan}.name`)} @@ -296,7 +293,10 @@ function CostSummary({ notificationApi, paymentPlan, form }) { marginBottom: 12, }} > - {Constants.APP_NAME} - {appContext.paymentPlanSettings.name} + {Constants.APP_NAME} -{" "} + {t( + `authentication.signUp.choosenProduct.products.${paymentPlan}.name` + )}