fix(routes): update worker home route to worker main

feat(localization): add benefits and auto-match sections in English and Spanish
fix(staff_main): handle route changes safely in StaffMainCubit
This commit is contained in:
Achintha Isuru
2026-01-24 12:30:53 -05:00
parent e2e7ad5567
commit 7cea81e99e
5 changed files with 145 additions and 2 deletions

View File

@@ -11,6 +11,7 @@ class StaffMainCubit extends Cubit<StaffMainState> implements Disposable {
}
void _onRouteChanged() {
if (isClosed) return;
final String path = Modular.to.path;
int newIndex = state.currentIndex;

View File

@@ -1,5 +1,5 @@
abstract class StaffMainRoutes {
static const String modulePath = '/worker-home';
static const String modulePath = '/worker-main';
static const String shifts = '/shifts';
static const String payments = '/payments';