Skip to content

Commit

Permalink
fix: make tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaugomez committed Jan 25, 2024
1 parent 0166d06 commit 3115fb2
Showing 1 changed file with 18 additions and 10 deletions.
28 changes: 18 additions & 10 deletions lib/ui/router/app_router.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,27 @@ final GoRouter router = GoRouter(
),
GoRoute(
path: '/forgot-password/confirm',
pageBuilder: (context, state) => platformPage(
ForgotPasswordConfirmPage(
data: state.extra as ForgotPasswordConfirmPageData,
),
fullscreenDialog: true,
),
pageBuilder: (context, state) {
final data = state.extra;
return platformPage(
data is ForgotPasswordConfirmPageData
? ForgotPasswordConfirmPage(data: data)
: const SizedBox(),
fullscreenDialog: true,
);
},
),
GoRoute(
path: '/change-password',
pageBuilder: (context, GoRouterState state) => platformPage(
ChangePasswordPage(data: state.extra as ChangePasswordPageData),
fullscreenDialog: true,
),
pageBuilder: (context, GoRouterState state) {
final data = state.extra;
return platformPage(
data is ChangePasswordPageData
? ChangePasswordPage(data: data)
: const SizedBox(),
fullscreenDialog: true,
);
},
),
GoRoute(
path: '/change-password/success',
Expand Down

0 comments on commit 3115fb2

Please sign in to comment.