@@ -19,15 +19,15 @@ import androidx.navigation.compose.NavHost
1919import  androidx.navigation.compose.composable 
2020import  androidx.navigation.compose.currentBackStackEntryAsState 
2121import  androidx.navigation.compose.rememberNavController 
22- import  dk.scheduling.schedulingfrontend.pages.AccountPage 
23- import  dk.scheduling.schedulingfrontend.pages.CreateDevicePage 
24- import  dk.scheduling.schedulingfrontend.pages.CreateTaskPage 
25- import  dk.scheduling.schedulingfrontend.pages.HomePage 
26- import  dk.scheduling.schedulingfrontend.pages.LoginPage 
27- import  dk.scheduling.schedulingfrontend.pages.Page 
28- import  dk.scheduling.schedulingfrontend.pages.SignUpPage 
29- import  dk.scheduling.schedulingfrontend.pages.TaskOverviewPage 
30- import  dk.scheduling.schedulingfrontend.ui .theme.SchedulingFrontendTheme 
22+ import  dk.scheduling.schedulingfrontend.gui. pages.AccountPage 
23+ import  dk.scheduling.schedulingfrontend.gui. pages.CreateDevicePage 
24+ import  dk.scheduling.schedulingfrontend.gui. pages.CreateTaskPage 
25+ import  dk.scheduling.schedulingfrontend.gui. pages.HomePage 
26+ import  dk.scheduling.schedulingfrontend.gui. pages.LoginPage 
27+ import  dk.scheduling.schedulingfrontend.gui. pages.Page 
28+ import  dk.scheduling.schedulingfrontend.gui. pages.SignUpPage 
29+ import  dk.scheduling.schedulingfrontend.gui. pages.TaskOverviewPage 
30+ import  dk.scheduling.schedulingfrontend.gui .theme.SchedulingFrontendTheme 
3131import  kotlinx.coroutines.runBlocking 
3232
3333class  MainActivity  : ComponentActivity () {
@@ -96,7 +96,11 @@ class MainActivity : ComponentActivity() {
9696                            CreateDevicePage (
9797                                deviceRepository =  App .appModule.deviceRepo,
9898                                navigateOnValidCreation =  { appState.navHostController.navigate(Page .DeviceOverview .route) },
99-                                 navigateOnCancelCreation =  { appState.navHostController.navigate(Page .DeviceOverview .route) },
99+                                 navigateOnCancelCreation =  {
100+                                     appState.navHostController.navigate(
101+                                         Page .DeviceOverview .route,
102+                                     )
103+                                 },
100104                            )
101105                        }
102106                        composable(
@@ -107,7 +111,11 @@ class MainActivity : ComponentActivity() {
107111                                deviceRepository =  App .appModule.deviceRepo,
108112                                taskRepository =  App .appModule.taskRepo,
109113                                navigateOnValidCreation =  { appState.navHostController.navigate(Page .TaskOverview .route) },
110-                                 navigateOnCancelCreation =  { appState.navHostController.navigate(Page .TaskOverview .route) },
114+                                 navigateOnCancelCreation =  {
115+                                     appState.navHostController.navigate(
116+                                         Page .TaskOverview .route,
117+                                     )
118+                                 },
111119                            )
112120                        }
113121                        composable(Page .Account .route) {
0 commit comments