feat: Implement bank account management feature with UI, BLoC integration, and repository setup
This commit is contained in:
@@ -22,8 +22,8 @@ extension HomeNavigator on IModularNavigator {
|
||||
}
|
||||
|
||||
/// Navigates to the payments page.
|
||||
void pushPayments() {
|
||||
pushNamed('/payments');
|
||||
void navigateToPayments() {
|
||||
navigate('/worker-main/payments');
|
||||
}
|
||||
|
||||
/// Navigates to the shifts listing.
|
||||
|
||||
@@ -131,7 +131,7 @@ class WorkerHomePage extends StatelessWidget {
|
||||
child: QuickActionItem(
|
||||
icon: LucideIcons.dollarSign,
|
||||
label: quickI18n.earnings,
|
||||
onTap: () => Modular.to.pushPayments(),
|
||||
onTap: () => Modular.to.navigateToPayments(),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
||||
@@ -16,7 +16,7 @@ class PendingPaymentCard extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
final pendingI18n = t.staff.home.pending_payment;
|
||||
return GestureDetector(
|
||||
onTap: () => Modular.to.pushPayments(),
|
||||
onTap: () => Modular.to.navigateToPayments(),
|
||||
child: Container(
|
||||
padding: const EdgeInsets.all(UiConstants.space4),
|
||||
decoration: BoxDecoration(
|
||||
|
||||
Reference in New Issue
Block a user