removed payment methods page for now
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user