Skip to content

Commit

Permalink
Add separate button text for create account page in demo mode
Browse files Browse the repository at this point in the history
  • Loading branch information
MDikkii committed Jan 2, 2025
1 parent 8388659 commit 99ebeeb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion recipients_app/lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -277,5 +277,6 @@
"invalidRecaptchaVersion": "Invalid reCAPTCHA version",
"invalidReqType": "Invalid request type",
"errorEmailInvalid": "Invalid email address",
"demoCta": "Demo"
"demoCta": "Demo",
"createAccountDemo": "Enter demo"
}
3 changes: 2 additions & 1 deletion recipients_app/lib/l10n/app_kri.arb
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
3 changes: 2 additions & 1 deletion recipients_app/lib/view/pages/terms_and_conditions_page.dart
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -92,7 +93,7 @@ class TermsAndConditionsPage extends StatelessWidget {
context.read<AuthCubit>().updateRecipient(updated);
}
},
label: localizations.createAccount,
label: DemoManager().isDemoEnabled ? localizations.createAccountDemo : localizations.createAccount,
),
],
),
Expand Down

0 comments on commit 99ebeeb

Please sign in to comment.