fix(navigation): ensure default route loads content
- Updated AuthNavigator to push /worker-main/home/ explicitly - Updated StaffMainNavigator to navigate to home by default - Fixes blank screen issue by ensuring RouterOutlet has a child route
This commit is contained in:
@@ -16,6 +16,6 @@ extension AuthNavigator on IModularNavigator {
|
|||||||
|
|
||||||
/// Navigates to the worker home (external to this module).
|
/// Navigates to the worker home (external to this module).
|
||||||
void pushWorkerHome() {
|
void pushWorkerHome() {
|
||||||
pushNamed('/worker-home');
|
pushNamed('/worker-main/home/');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ extension StaffMainNavigator on IModularNavigator {
|
|||||||
/// Navigates to the Staff Main Shell (Home).
|
/// Navigates to the Staff Main Shell (Home).
|
||||||
/// This replaces the current navigation stack.
|
/// This replaces the current navigation stack.
|
||||||
void navigateStaffMain() {
|
void navigateStaffMain() {
|
||||||
navigate('${StaffMainRoutes.modulePath}/');
|
navigate('${StaffMainRoutes.modulePath}/home/');
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Navigates to the Shifts tab.
|
/// Navigates to the Shifts tab.
|
||||||
|
|||||||
Reference in New Issue
Block a user