feat(time_card): refactor TimeCardPage to use StatelessWidget and optimize Bloc initialization
feat(time_card): change GetTimeCardsUseCase to lazy singleton in StaffTimeCardModule feat(clock_in): update use cases to lazy singleton in StaffClockInModule
This commit is contained in:
@@ -57,10 +57,10 @@ class StaffClockInModule extends Module {
|
||||
);
|
||||
|
||||
// Use Cases
|
||||
i.add<GetTodaysShiftUseCase>(GetTodaysShiftUseCase.new);
|
||||
i.add<GetAttendanceStatusUseCase>(GetAttendanceStatusUseCase.new);
|
||||
i.add<ClockInUseCase>(ClockInUseCase.new);
|
||||
i.add<ClockOutUseCase>(ClockOutUseCase.new);
|
||||
i.addLazySingleton<GetTodaysShiftUseCase>(GetTodaysShiftUseCase.new);
|
||||
i.addLazySingleton<GetAttendanceStatusUseCase>(GetAttendanceStatusUseCase.new);
|
||||
i.addLazySingleton<ClockInUseCase>(ClockInUseCase.new);
|
||||
i.addLazySingleton<ClockOutUseCase>(ClockOutUseCase.new);
|
||||
|
||||
// Validators
|
||||
i.addLazySingleton<CompositeClockInValidator>(
|
||||
|
||||
Reference in New Issue
Block a user