@tripian/react 9.1.96 → 9.1.97
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/components/CouponCard/CouponCard.d.ts +1 -0
- package/index.js +5 -3
- package/index.js.map +1 -1
- package/min.css +1 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -77030,7 +77030,7 @@ const react_1 = __importDefault(__webpack_require__(0));
|
|
|
77030
77030
|
const moment_1 = __importDefault(__webpack_require__(1));
|
|
77031
77031
|
const Button_1 = __importDefault(__webpack_require__(10));
|
|
77032
77032
|
const CouponCard_scss_1 = __importDefault(__webpack_require__(804));
|
|
77033
|
-
const CouponCard = ({ coupon, viewOffersClicked }) => {
|
|
77033
|
+
const CouponCard = ({ coupon, viewOffersClicked, t }) => {
|
|
77034
77034
|
moment_1.default.locale(window.twindow.langCode);
|
|
77035
77035
|
return (react_1.default.createElement("div", { className: CouponCard_scss_1.default.couponCard },
|
|
77036
77036
|
react_1.default.createElement("div", { className: CouponCard_scss_1.default.couponCardImgContent },
|
|
@@ -77042,11 +77042,13 @@ const CouponCard = ({ coupon, viewOffersClicked }) => {
|
|
|
77042
77042
|
(0, moment_1.default)(coupon.validEndDate).format('MMM Do')),
|
|
77043
77043
|
react_1.default.createElement("div", { className: CouponCard_scss_1.default.couponTitle }, coupon.campaign.title),
|
|
77044
77044
|
react_1.default.createElement("div", { className: CouponCard_scss_1.default.couponAmount },
|
|
77045
|
-
react_1.default.createElement("span", null,
|
|
77045
|
+
react_1.default.createElement("span", null,
|
|
77046
|
+
t('available'),
|
|
77047
|
+
": "),
|
|
77046
77048
|
react_1.default.createElement("span", null, coupon.currency),
|
|
77047
77049
|
react_1.default.createElement("span", null, coupon.balance)),
|
|
77048
77050
|
react_1.default.createElement("div", { className: CouponCard_scss_1.default.couponButtonContent },
|
|
77049
|
-
react_1.default.createElement(Button_1.default, { className: CouponCard_scss_1.default.couponButton, color: "primary", text:
|
|
77051
|
+
react_1.default.createElement(Button_1.default, { className: CouponCard_scss_1.default.couponButton, color: "primary", text: t('viewOffers'), onClick: () => viewOffersClicked() })))));
|
|
77050
77052
|
};
|
|
77051
77053
|
exports.default = CouponCard;
|
|
77052
77054
|
|