refactor: streamline shift navigation calls and set default shifts tab to 'myshifts'.

This commit is contained in:
Achintha Isuru
2026-02-22 21:34:16 -05:00
parent 0c2482ee9b
commit 69b5c74f00
3 changed files with 3 additions and 10 deletions

View File

@@ -96,7 +96,7 @@ class _ShiftDetailsPageState extends State<ShiftDetailsPage> {
);
Modular.to.toShifts(
selectedDate: state.shiftDate,
initialTab: 'find',
initialTab: 'myshifts',
refreshAvailable: true,
);
} else if (state is ShiftDetailsError) {

View File

@@ -161,10 +161,7 @@ class _MyShiftCardState extends State<MyShiftCard> {
return GestureDetector(
onTap: () {
Modular.to.pushNamed(
StaffPaths.shiftDetails(widget.shift.id),
arguments: widget.shift,
);
Modular.to.toShiftDetails(widget.shift);
},
child: Container(
margin: const EdgeInsets.only(bottom: UiConstants.space3),