fix #7749
This commit is contained in:
parent
2c6858a501
commit
974cd02066
@ -344,6 +344,13 @@ export const Payment = tests.createExample(TestedComponent, {
|
|||||||
transaction: exampleData.payment,
|
transaction: exampleData.payment,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
export const PaymentWithPosConfirmation = tests.createExample(TestedComponent, {
|
||||||
|
transaction: {
|
||||||
|
...exampleData.payment,
|
||||||
|
posConfirmation: "123123\n3345345\n567567",
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
export const PaymentError = tests.createExample(TestedComponent, {
|
export const PaymentError = tests.createExample(TestedComponent, {
|
||||||
transaction: {
|
transaction: {
|
||||||
...exampleData.payment,
|
...exampleData.payment,
|
||||||
|
@ -56,6 +56,7 @@ import {
|
|||||||
Row,
|
Row,
|
||||||
SmallLightText,
|
SmallLightText,
|
||||||
SubTitle,
|
SubTitle,
|
||||||
|
SuccessBox,
|
||||||
WarningBox,
|
WarningBox,
|
||||||
} from "../components/styled/index.js";
|
} from "../components/styled/index.js";
|
||||||
import { Time } from "../components/Time.js";
|
import { Time } from "../components/Time.js";
|
||||||
@ -629,6 +630,15 @@ export function TransactionView({
|
|||||||
)}
|
)}
|
||||||
</InfoBox>
|
</InfoBox>
|
||||||
)}
|
)}
|
||||||
|
{transaction.posConfirmation ? (
|
||||||
|
<AlertView
|
||||||
|
alert={{
|
||||||
|
type: "info",
|
||||||
|
message: i18n.str`Confirmation code`,
|
||||||
|
description: transaction.posConfirmation as TranslatedString,
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
) : undefined}
|
||||||
<Part
|
<Part
|
||||||
title={i18n.str`Merchant`}
|
title={i18n.str`Merchant`}
|
||||||
text={<MerchantDetails merchant={transaction.info.merchant} />}
|
text={<MerchantDetails merchant={transaction.info.merchant} />}
|
||||||
|
Loading…
Reference in New Issue
Block a user