wallet card redesign
This commit is contained in:
@@ -229,7 +229,7 @@ RouteBase payoutShellRoute() => ShellRoute(
|
||||
_startPayment(context, recipient: null, paymentType: type),
|
||||
onTopUp: (wallet) => _openWalletTopUp(context, wallet),
|
||||
onLedgerAddFunds: (account) => _openLedgerAddFunds(context, account),
|
||||
onWalletTap: (wallet) => _openWalletEdit(context, wallet),
|
||||
onWalletTap: (wallet) => _openWalletTopUp(context, wallet),
|
||||
onLedgerTap: (account) => _openLedgerEdit(context, account),
|
||||
),
|
||||
),
|
||||
@@ -385,12 +385,6 @@ void _openEditRecipient(BuildContext context, {required Recipient recipient}) {
|
||||
context.pushNamed(PayoutRoutes.editRecipient);
|
||||
}
|
||||
|
||||
void _openWalletEdit(BuildContext context, Wallet wallet) {
|
||||
context.read<PaymentSourceController>().selectWallet(wallet);
|
||||
context.read<WalletsController>().selectWallet(wallet);
|
||||
context.pushToEditWallet();
|
||||
}
|
||||
|
||||
void _openLedgerEdit(BuildContext context, LedgerAccount account) {
|
||||
context.read<PaymentSourceController>().selectLedgerByRef(
|
||||
account.ledgerAccountRef,
|
||||
|
||||
Reference in New Issue
Block a user