Skip to content

Commit

Permalink
Removed unused routes
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsRefsgaard committed Oct 16, 2023
1 parent 1e6434c commit 10b437c
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 70 deletions.
29 changes: 0 additions & 29 deletions lib/carp_study_app.dart
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,9 @@ class CarpStudyAppState extends State<CarpStudyApp> {
bloc.data.informedConsentViewModel,
),
),
GoRoute(
path: '/failedLogin',
builder: (context, state) => const FailedLoginPage(),
),
GoRoute(
path: '/login',
parentNavigatorKey: _rootNavigatorKey,
// redirect: (context, state) => CarpService().authenticated ? '/' : null,
builder: (context, state) => const LoginPage(),
),
GoRoute(
Expand All @@ -143,30 +138,6 @@ class CarpStudyAppState extends State<CarpStudyApp> {
builder: (context, state) =>
InvitationListPage(bloc.data.invitationsListViewModel),
),
GoRoute(
path: '/test',
builder: (context, state) => TaskListPage(
bloc.data.taskListPageViewModel,
),
),
GoRoute(
path: '/studies',
builder: (context, state) {
return const ErrorPage();
},
),
GoRoute(
path: '/auth',
builder: (context, state) {
return const ErrorPage();
},
),
GoRoute(
path: '//auth',
builder: (context, state) {
return const ErrorPage();
},
),
],
debugLogDiagnostics: true,
);
Expand Down
1 change: 0 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ part 'ui/pages/study_page.dart';
part 'ui/pages/task_list_page.dart';
part 'ui/pages/profile_page.dart';
part 'ui/pages/audio_task_page.dart';
part 'ui/pages/failed_login_page.dart';
part 'ui/pages/study_details_page.dart';
part 'ui/pages/message_details_page.dart';
part 'ui/pages/invitation_page.dart';
Expand Down
1 change: 1 addition & 0 deletions lib/ui/pages/cans_login.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ class _LoginPageState extends State<LoginPage> {
if (bloc.backend.isAuthenticated) {
if (context.mounted) {
context.push('/invitations');
setState(() {});
}
}
},
Expand Down
40 changes: 0 additions & 40 deletions lib/ui/pages/failed_login_page.dart

This file was deleted.

0 comments on commit 10b437c

Please sign in to comment.