-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Wallet]: Add Payments You've Requested notifications group & screen (#…
…1902) * Split Payment Requests into incoming and outgoing. * Implement Cancel feature on an outgoing payment request. * Implement Remind feature on an outgoing payment request. * Fix old tests for incoming requests. * Create new tests for outgoing requests. * Refactor code duplication between incoming and outgoing requests. * Add Spanish translations.
- Loading branch information
Showing
43 changed files
with
2,940 additions
and
185 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"requests": "Requests", | ||
"empty": "You have no Payment Requests", | ||
"paymentRequests": "Payment Requests", | ||
"incomingPaymentRequests": "Requests Waiting for You", | ||
"outgoingPaymentRequests": "Payments You’ve Requested", | ||
"celoDollarBalance": "{{CeloDollar}} Balance", | ||
"pay": "Pay", | ||
"decline": "Decline", | ||
"requestDeclined": "Request Declined", | ||
"requestPaid": "Request Paid" | ||
"requestPaid": "Request Paid", | ||
"paymentRequestUpdateFailed": "Cannot update payment request" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
{ | ||
"requests": "Solicitudes", | ||
"empty": "No tienes solicitudes de pago", | ||
"paymentRequests": "Solicitudes de pago", | ||
"incomingPaymentRequests": "Pedidos esperandote", | ||
"outgoingPaymentRequests": "Pagos que tu has pedido", | ||
"celoDollarBalance": "Saldo de {{CeloDollar}}", | ||
"pay": "Paga", | ||
"decline": "Disminución", | ||
"requestDeclined": "Solicitud rechazada", | ||
"requestPaid": "Solicitud Pagada" | ||
"requestPaid": "Solicitud Pagada", | ||
"paymentRequestUpdateFailed": "No se pudo actualizar el pedido de pago" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
import { PaymentRequestStatus } from 'src/account/types' | ||
import { RootState } from 'src/redux/reducers' | ||
|
||
export const getPaymentRequests = (state: RootState) => { | ||
return (state.account.paymentRequests || []).filter( | ||
export const getIncomingPaymentRequests = (state: RootState) => { | ||
return (state.account.incomingPaymentRequests || []).filter( | ||
(p) => p.status === PaymentRequestStatus.REQUESTED | ||
) | ||
} | ||
|
||
export const getOutgoingPaymentRequests = (state: RootState) => { | ||
return (state.account.outgoingPaymentRequests || []).filter( | ||
(p) => p.status === PaymentRequestStatus.REQUESTED | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.