refactor: remove redundant pushShiftDetails navigation method and update its usages to toShiftDetails.

This commit is contained in:
Achintha Isuru
2026-02-22 21:16:46 -05:00
parent fa00a0bf75
commit 7f3a66ba11
4 changed files with 33 additions and 49 deletions

View File

@@ -159,15 +159,6 @@ extension StaffNavigator on IModularNavigator {
navigate(StaffPaths.shiftDetails(shift.id), arguments: shift);
}
/// Pushes the shift details page (alternative method).
///
/// Same as [toShiftDetails] but using pushNamed instead of navigate.
/// Use this when you want to add the details page to the stack rather
/// than replacing the current route.
void pushShiftDetails(Shift shift) {
pushNamed(StaffPaths.shiftDetails(shift.id), arguments: shift);
}
// ==========================================================================
// ONBOARDING & PROFILE SECTIONS
// ==========================================================================