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:
@@ -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;
|
||||
|
||||
|
||||
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user