@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.
@@ -1,7 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  interface PaymentFailedProps {
3
3
  onClick: () => void;
4
- onBackToOrderClick: () => void;
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;CAChC;AAED,eAAO,MAAM,aAAa,qCAGvB,kBAAkB,gBAapB,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")))))};
@@ -111,6 +111,7 @@
111
111
  display: flex;
112
112
  align-items: center;
113
113
  justify-content: space-between;
114
+ margin-right: 0.2rem;
114
115
  }
115
116
 
116
117
  &__product.error {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@licklist/design",
3
- "version": "0.44.474",
3
+ "version": "0.44.475-dev.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
@@ -4,7 +4,7 @@ import { useTranslation } from "react-i18next";
4
4
 
5
5
  interface PaymentFailedProps {
6
6
  onClick: () => void;
7
- onBackToOrderClick: () => void;
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
- <Button onClick={onBackToOrderClick}>{t("tryAgain")}</Button>
20
+ {onBackToOrderClick && (
21
+ <Button onClick={onBackToOrderClick}>{t("tryAgain")}</Button>
22
+ )}
21
23
  <Button onClick={onClick}>{t("backToSite")}</Button>
22
24
  </div>
23
25
  </Row>
@@ -111,6 +111,7 @@
111
111
  display: flex;
112
112
  align-items: center;
113
113
  justify-content: space-between;
114
+ margin-right: 0.2rem;
114
115
  }
115
116
 
116
117
  &__product.error {