This commit is contained in:
Sebastian 2023-04-24 14:53:01 -03:00
parent 2c6858a501
commit 974cd02066
No known key found for this signature in database
GPG Key ID: 173909D1A5F66069
2 changed files with 17 additions and 0 deletions

View File

@ -344,6 +344,13 @@ export const Payment = tests.createExample(TestedComponent, {
transaction: exampleData.payment,
});
export const PaymentWithPosConfirmation = tests.createExample(TestedComponent, {
transaction: {
...exampleData.payment,
posConfirmation: "123123\n3345345\n567567",
},
});
export const PaymentError = tests.createExample(TestedComponent, {
transaction: {
...exampleData.payment,

View File

@ -56,6 +56,7 @@ import {
Row,
SmallLightText,
SubTitle,
SuccessBox,
WarningBox,
} from "../components/styled/index.js";
import { Time } from "../components/Time.js";
@ -629,6 +630,15 @@ export function TransactionView({
)}
</InfoBox>
)}
{transaction.posConfirmation ? (
<AlertView
alert={{
type: "info",
message: i18n.str`Confirmation code`,
description: transaction.posConfirmation as TranslatedString,
}}
/>
) : undefined}
<Part
title={i18n.str`Merchant`}
text={<MerchantDetails merchant={transaction.info.merchant} />}