Skip to content

Commit 9eff3b5

Browse files
committed
fix(router): update AuthenticationPage route after refactor
Removes the now-deleted `headline`, `subHeadline`, and `showAnonymousButton` parameters from the `AuthenticationPage` constructor within the GoRouter configuration. This aligns the router with the recent localization and simplification of the `AuthenticationPage` widget.
1 parent bfafe19 commit 9eff3b5

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

lib/router/router.dart

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -97,19 +97,11 @@ GoRouter createRouter({
9797
path: Routes.authentication,
9898
name: Routes.authenticationName,
9999
builder: (BuildContext context, GoRouterState state) {
100-
const headline = 'Sign In to Dashboard';
101-
const subHeadline = 'Enter your email to get a verification code.';
102-
const showAnonymousButton = false;
103-
104100
return BlocProvider(
105101
create: (context) => AuthenticationBloc(
106102
authenticationRepository: context.read<HtAuthRepository>(),
107103
),
108-
child: const AuthenticationPage(
109-
headline: headline,
110-
subHeadline: subHeadline,
111-
showAnonymousButton: showAnonymousButton,
112-
),
104+
child: const AuthenticationPage(),
113105
);
114106
},
115107
routes: [

0 commit comments

Comments
 (0)