From 99ebeeb0b3de0e262ac6264389a1b44db83830aa Mon Sep 17 00:00:00 2001 From: Mikolaj Date: Thu, 2 Jan 2025 14:35:33 +0100 Subject: [PATCH] Add separate button text for create account page in demo mode --- recipients_app/lib/l10n/app_en.arb | 3 ++- recipients_app/lib/l10n/app_kri.arb | 3 ++- recipients_app/lib/view/pages/terms_and_conditions_page.dart | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/recipients_app/lib/l10n/app_en.arb b/recipients_app/lib/l10n/app_en.arb index b04b2e276..a6d415fd4 100644 --- a/recipients_app/lib/l10n/app_en.arb +++ b/recipients_app/lib/l10n/app_en.arb @@ -277,5 +277,6 @@ "invalidRecaptchaVersion": "Invalid reCAPTCHA version", "invalidReqType": "Invalid request type", "errorEmailInvalid": "Invalid email address", - "demoCta": "Demo" + "demoCta": "Demo", + "createAccountDemo": "Enter demo" } diff --git a/recipients_app/lib/l10n/app_kri.arb b/recipients_app/lib/l10n/app_kri.arb index 55bf03707..dfd9fb81c 100644 --- a/recipients_app/lib/l10n/app_kri.arb +++ b/recipients_app/lib/l10n/app_kri.arb @@ -177,5 +177,6 @@ "userDisabledError": "Wi dɔn lɔk yu akawnt. Rich awt to wi if yu want fɔ no mɔ.", "invalidCredentialError": " Di fon nɔmba ɔ di spɛshal kod we wi sɛn to yu in tɛm dɔn pas fɔ yuz. Duya tray bak.", "errorEmailInvalid": "Imel nɔ kɔrɛkt", - "demoCta": "Demo" + "demoCta": "Demo", + "createAccountDemo": "Enta di demo" } diff --git a/recipients_app/lib/view/pages/terms_and_conditions_page.dart b/recipients_app/lib/view/pages/terms_and_conditions_page.dart index d901c4a4e..f7cce8c77 100644 --- a/recipients_app/lib/view/pages/terms_and_conditions_page.dart +++ b/recipients_app/lib/view/pages/terms_and_conditions_page.dart @@ -1,5 +1,6 @@ import "package:app/core/cubits/auth/auth_cubit.dart"; import "package:app/core/helpers/flushbar_helper.dart"; +import "package:app/demo_manager.dart"; import "package:app/ui/buttons/buttons.dart"; import "package:app/ui/configs/configs.dart"; import "package:flutter/gestures.dart"; @@ -92,7 +93,7 @@ class TermsAndConditionsPage extends StatelessWidget { context.read().updateRecipient(updated); } }, - label: localizations.createAccount, + label: DemoManager().isDemoEnabled ? localizations.createAccountDemo : localizations.createAccount, ), ], ),