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,29 +607,35 @@ export function TransactionView({
) : undefined} ) : undefined}
{pendingRefund !== undefined && Amounts.isNonZero(pendingRefund) && ( {pendingRefund !== undefined && Amounts.isNonZero(pendingRefund) && (
<InfoBox> <InfoBox>
<i18n.Translate> {transaction.refundQueryActive ? (
Merchant created a refund for this order but was not automatically <i18n.Translate>Refund is in progress.</i18n.Translate>
picked up. ) : (
</i18n.Translate> <i18n.Translate>
Merchant created a refund for this order but was not
automatically picked up.
</i18n.Translate>
)}
<Part <Part
title={i18n.str`Offer`} title={i18n.str`Offer`}
text={<Amount value={pendingRefund} />} text={<Amount value={pendingRefund} />}
kind="positive" kind="positive"
/> />
<div> {transaction.refundQueryActive ? undefined : (
<div />
<div> <div>
<Button <div />
variant="contained" <div>
onClick={safely( <Button
() => onRefund(transaction.proposalId), variant="contained"
i18n.str`Could not refund`, onClick={safely(
)} () => onRefund(transaction.proposalId),
> i18n.str`Could not refund`,
<i18n.Translate>Accept</i18n.Translate> )}
</Button> >
<i18n.Translate>Accept</i18n.Translate>
</Button>
</div>
</div> </div>
</div> )}
</InfoBox> </InfoBox>
)} )}
<Part <Part