refactor: remove redundant pushShiftDetails navigation method and update its usages to toShiftDetails.
This commit is contained in:
@@ -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
|
||||
// ==========================================================================
|
||||
|
||||
Reference in New Issue
Block a user