@licklist/design 0.44.474 → 0.44.475-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/iframe/payment/payment-failed/PaymentFailed.d.ts +1 -1
- package/dist/iframe/payment/payment-failed/PaymentFailed.d.ts.map +1 -1
- package/dist/iframe/payment/payment-failed/PaymentFailed.js +1 -1
- package/dist/styles/iframe-events/Event.scss +1 -0
- package/package.json +1 -1
- package/src/iframe/payment/payment-failed/PaymentFailed.tsx +4 -2
- package/src/styles/iframe-events/Event.scss +1 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
interface PaymentFailedProps {
|
|
3
3
|
onClick: () => void;
|
|
4
|
-
onBackToOrderClick
|
|
4
|
+
onBackToOrderClick?: () => void;
|
|
5
5
|
}
|
|
6
6
|
export declare const PaymentFailed: ({ onClick, onBackToOrderClick, }: PaymentFailedProps) => JSX.Element;
|
|
7
7
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentFailed.d.ts","sourceRoot":"","sources":["../../../../src/iframe/payment/payment-failed/PaymentFailed.tsx"],"names":[],"mappings":";AAIA,UAAU,kBAAkB;IAC1B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,kBAAkB,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"PaymentFailed.d.ts","sourceRoot":"","sources":["../../../../src/iframe/payment/payment-failed/PaymentFailed.tsx"],"names":[],"mappings":";AAIA,UAAU,kBAAkB;IAC1B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAC;CACjC;AAED,eAAO,MAAM,aAAa,qCAGvB,kBAAkB,gBAepB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("react"),r=(e=t)&&"object"==typeof e&&"default"in e?e.default:e,a=require("react-i18next"),n=require("react-bootstrap");exports.PaymentFailed=function(e){var t=e.onClick,c=e.onBackToOrderClick,l=a.useTranslation("Design").t;return r.createElement("div",{className:"text-center failed-payment-wrapper mt-4"},r.createElement(n.Row,null,r.createElement("div",{className:"d-flex buttons-wrapper col-12"},r.createElement(n.Button,{onClick:c},l("tryAgain")),r.createElement(n.Button,{onClick:t},l("backToSite")))))};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e,t=require("react"),r=(e=t)&&"object"==typeof e&&"default"in e?e.default:e,a=require("react-i18next"),n=require("react-bootstrap");exports.PaymentFailed=function(e){var t=e.onClick,c=e.onBackToOrderClick,l=a.useTranslation("Design").t;return r.createElement("div",{className:"text-center failed-payment-wrapper mt-4"},r.createElement(n.Row,null,r.createElement("div",{className:"d-flex buttons-wrapper col-12"},c&&r.createElement(n.Button,{onClick:c},l("tryAgain")),r.createElement(n.Button,{onClick:t},l("backToSite")))))};
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@ import { useTranslation } from "react-i18next";
|
|
|
4
4
|
|
|
5
5
|
interface PaymentFailedProps {
|
|
6
6
|
onClick: () => void;
|
|
7
|
-
onBackToOrderClick
|
|
7
|
+
onBackToOrderClick?: () => void;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
export const PaymentFailed = ({
|
|
@@ -17,7 +17,9 @@ export const PaymentFailed = ({
|
|
|
17
17
|
<div className="text-center failed-payment-wrapper mt-4">
|
|
18
18
|
<Row>
|
|
19
19
|
<div className="d-flex buttons-wrapper col-12">
|
|
20
|
-
|
|
20
|
+
{onBackToOrderClick && (
|
|
21
|
+
<Button onClick={onBackToOrderClick}>{t("tryAgain")}</Button>
|
|
22
|
+
)}
|
|
21
23
|
<Button onClick={onClick}>{t("backToSite")}</Button>
|
|
22
24
|
</div>
|
|
23
25
|
</Row>
|