Top Up Balance logic and Added fixes for routing
This commit is contained in:
@@ -12,10 +12,12 @@ import 'package:pweb/providers/wallets.dart';
|
||||
|
||||
class WalletCard extends StatelessWidget {
|
||||
final Wallet wallet;
|
||||
final VoidCallback onTopUp;
|
||||
|
||||
const WalletCard({
|
||||
super.key,
|
||||
required this.wallet,
|
||||
required this.onTopUp,
|
||||
});
|
||||
|
||||
@override
|
||||
@@ -43,7 +45,7 @@ class WalletCard extends StatelessWidget {
|
||||
),
|
||||
BalanceAddFunds(
|
||||
onTopUp: () {
|
||||
// TODO: Implement top-up functionality
|
||||
onTopUp();
|
||||
},
|
||||
),
|
||||
],
|
||||
@@ -51,4 +53,4 @@ class WalletCard extends StatelessWidget {
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user