refactor: remove redundant pushShiftDetails navigation method and update its usages to toShiftDetails.
This commit is contained in:
@@ -9,10 +9,7 @@ import '../shared/empty_state_view.dart';
|
||||
class HistoryShiftsTab extends StatelessWidget {
|
||||
final List<Shift> historyShifts;
|
||||
|
||||
const HistoryShiftsTab({
|
||||
super.key,
|
||||
required this.historyShifts,
|
||||
});
|
||||
const HistoryShiftsTab({super.key, required this.historyShifts});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -33,10 +30,8 @@ class HistoryShiftsTab extends StatelessWidget {
|
||||
(shift) => Padding(
|
||||
padding: const EdgeInsets.only(bottom: UiConstants.space3),
|
||||
child: GestureDetector(
|
||||
onTap: () => Modular.to.pushShiftDetails(shift),
|
||||
child: MyShiftCard(
|
||||
shift: shift,
|
||||
),
|
||||
onTap: () => Modular.to.toShiftDetails(shift),
|
||||
child: MyShiftCard(shift: shift),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user