redesigned payment page + a lot of fixes
This commit is contained in:
@@ -85,7 +85,7 @@ class PageSelector extends StatelessWidget {
|
||||
final byName = PayoutRoutes.destinationFor(state.name);
|
||||
if (byName != null) return byName;
|
||||
|
||||
final location = state.matchedLocation;
|
||||
final location = state.uri.path;
|
||||
if (location.startsWith(PayoutRoutes.editWalletPath)) {
|
||||
return PayoutDestination.editwallet;
|
||||
}
|
||||
@@ -98,6 +98,9 @@ class PageSelector extends StatelessWidget {
|
||||
if (location.startsWith(PayoutRoutes.paymentPath)) {
|
||||
return PayoutDestination.payment;
|
||||
}
|
||||
if (location.startsWith(PayoutRoutes.editRecipientPath)) {
|
||||
return PayoutDestination.addrecipient;
|
||||
}
|
||||
if (location.startsWith(PayoutRoutes.addRecipientPath)) {
|
||||
return PayoutDestination.addrecipient;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user