tell the user that refund is pending

This commit is contained in:
Sebastian 2023-02-20 13:24:24 -03:00
parent 5ad96b178e
commit 7bb81a008b
No known key found for this signature in database
GPG Key ID: BE4FF68352439FC1

View File

@ -607,15 +607,20 @@ export function TransactionView({
) : undefined} ) : undefined}
{pendingRefund !== undefined && Amounts.isNonZero(pendingRefund) && ( {pendingRefund !== undefined && Amounts.isNonZero(pendingRefund) && (
<InfoBox> <InfoBox>
{transaction.refundQueryActive ? (
<i18n.Translate>Refund is in progress.</i18n.Translate>
) : (
<i18n.Translate> <i18n.Translate>
Merchant created a refund for this order but was not automatically Merchant created a refund for this order but was not
picked up. automatically picked up.
</i18n.Translate> </i18n.Translate>
)}
<Part <Part
title={i18n.str`Offer`} title={i18n.str`Offer`}
text={<Amount value={pendingRefund} />} text={<Amount value={pendingRefund} />}
kind="positive" kind="positive"
/> />
{transaction.refundQueryActive ? undefined : (
<div> <div>
<div /> <div />
<div> <div>
@ -630,6 +635,7 @@ export function TransactionView({
</Button> </Button>
</div> </div>
</div> </div>
)}
</InfoBox> </InfoBox>
)} )}
<Part <Part