removed payment methods page for now

This commit is contained in:
Arseni
2026-02-05 15:36:43 +03:00
parent fb9def8c19
commit d3e69bcd62
11 changed files with 125 additions and 44 deletions

View File

@@ -104,6 +104,11 @@ RouteBase payoutShellRoute() => ShellRoute(
wallet,
returnTo: PayoutDestination.dashboard,
),
onWalletTap: (wallet) => _openWalletEdit(
context,
wallet,
returnTo: PayoutDestination.dashboard,
),
),
),
),
@@ -120,10 +125,8 @@ RouteBase payoutShellRoute() => ShellRoute(
returnTo: PayoutDestination.recipients,
),
onAddRecipient: () => _openAddRecipient(context),
onEditRecipient: (recipient) => _openAddRecipient(
context,
recipient: recipient,
),
onEditRecipient: (recipient) =>
_openAddRecipient(context, recipient: recipient),
onDeleteRecipient: (recipient) async {
final confirmed = await showConfirmationDialog(
context: context,
@@ -192,22 +195,13 @@ RouteBase payoutShellRoute() => ShellRoute(
GoRoute(
name: PayoutRoutes.reports,
path: PayoutRoutes.reportsPath,
pageBuilder: (_, _) => const NoTransitionPage(
child: OperationHistoryPage(),
),
pageBuilder: (_, _) =>
const NoTransitionPage(child: OperationHistoryPage()),
),
GoRoute(
name: PayoutRoutes.methods,
path: PayoutRoutes.methodsPath,
pageBuilder: (context, _) => NoTransitionPage(
child: PaymentConfigPage(
onWalletTap: (wallet) => _openWalletEdit(
context,
wallet,
returnTo: PayoutDestination.methods,
),
),
),
redirect: (_, state) => PayoutRoutes.dashboardPath,
),
GoRoute(
name: PayoutRoutes.editWallet,