Skip to content

Commit

Permalink
refactor: updated deriv_localizations
Browse files Browse the repository at this point in the history
  • Loading branch information
bassam-deriv committed May 1, 2024
1 parent 533230a commit 7f188cb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,17 +113,14 @@ class _ManagePasskeysPageState extends State<ManagePasskeysPage> {
} else if (state is DerivPasskeysErrorState) {
String title =
context.derivPasskeysLocalizations.unexpectedError;
String content = context
.derivPasskeysLocalizations.unexpectedErrorDescription;
String content = state.message;

if (state.errorCode == 'PasskeysOff') {
// title =
// context.derivPasskeysLocalizations.passkeysOffErrorTitle;
title =
context.derivPasskeysLocalizations.passkeysOffErrorTitle;
content = '';
} else {
widget.derivPasskeysBloc
.add(const DerivPasskeysGetPasskeysListEvent());
}

showAlertDialog(
context: context,
title: title,
Expand Down Expand Up @@ -160,7 +157,7 @@ class _ManagePasskeysPageState extends State<ManagePasskeysPage> {
},
child: Text(
context
.derivPasskeysLocalizations.createPassKey,
.derivPasskeysLocalizations.createPasskey,
style: TextStyle(
color: context.theme.colors.prominent,
),
Expand Down
4 changes: 2 additions & 2 deletions packages/deriv_passkeys/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ dependencies:
git:
url: [email protected]:regentmarkets/flutter-deriv-packages.git
path: packages/deriv_localizations
ref: 080fc15331097263c0290d1c0a06b9eed0558c95
ref: 19bc45a21cb945633184bb66ce55693f61691b5f
deriv_ui:
git:
url: [email protected]:regentmarkets/flutter-deriv-packages.git
Expand All @@ -46,7 +46,7 @@ dependency_overrides:
git:
url: [email protected]:regentmarkets/flutter-deriv-packages.git
path: packages/deriv_localizations
ref: 080fc15331097263c0290d1c0a06b9eed0558c95
ref: 19bc45a21cb945633184bb66ce55693f61691b5f

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit 7f188cb

Please sign in to comment.