@financial-times/n-conversion-forms 44.5.1 → 44.5.2
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/.toolkitstate/ci.json
CHANGED
|
@@ -27,7 +27,7 @@ exports[`PaymentTerm When using custom options renders when not using an option
|
|
|
27
27
|
</span>
|
|
28
28
|
<div>
|
|
29
29
|
<span class="ncf__payment-term__large-price">
|
|
30
|
-
€270.00
|
|
30
|
+
€ 270.00
|
|
31
31
|
</span>
|
|
32
32
|
<p class="ncf__payment-term__charge-on-text">
|
|
33
33
|
You will be charged on May 1, 2021
|
|
@@ -54,7 +54,7 @@ exports[`PaymentTerm When using custom options renders when not using an option
|
|
|
54
54
|
</span>
|
|
55
55
|
<div>
|
|
56
56
|
<span class="ncf__payment-term__large-price">
|
|
57
|
-
€300.00
|
|
57
|
+
€ 300.00
|
|
58
58
|
</span>
|
|
59
59
|
<p class="ncf__payment-term__charge-on-text">
|
|
60
60
|
You will be charged on May 1, 2021
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import PropTypes from 'prop-types';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
|
-
import { Period, Monthly
|
|
4
|
+
import { Period, Monthly } from '@financial-times/n-pricing';
|
|
5
5
|
|
|
6
6
|
export function PaymentTerm({
|
|
7
7
|
fieldId = 'paymentTermField',
|
|
@@ -253,10 +253,7 @@ export function PaymentTerm({
|
|
|
253
253
|
<span
|
|
254
254
|
className={largePrice ? 'ncf__payment-term__large-price' : ''}
|
|
255
255
|
>
|
|
256
|
-
{
|
|
257
|
-
value: option.price,
|
|
258
|
-
symbol: option.symbol,
|
|
259
|
-
}).getAmountFormatted()}
|
|
256
|
+
{option.price}
|
|
260
257
|
</span>
|
|
261
258
|
{option.chargeOnText && (
|
|
262
259
|
<p className="ncf__payment-term__charge-on-text">
|
|
@@ -265,7 +265,6 @@ describe('PaymentTerm', () => {
|
|
|
265
265
|
title: 'Annual',
|
|
266
266
|
subTitle: '(Renews annually unless cancelled)',
|
|
267
267
|
price: '€ 270.00',
|
|
268
|
-
symbol: '€',
|
|
269
268
|
value: 270.0,
|
|
270
269
|
isTrial: false,
|
|
271
270
|
discount: '33%',
|
|
@@ -276,7 +275,6 @@ describe('PaymentTerm', () => {
|
|
|
276
275
|
{
|
|
277
276
|
title: '12 Month Subscription',
|
|
278
277
|
price: '€ 300.00',
|
|
279
|
-
symbol: '€',
|
|
280
278
|
value: 300.0,
|
|
281
279
|
isTrial: false,
|
|
282
280
|
discount: '10%',
|
package/dist/payment-term.jsx
CHANGED
|
@@ -204,10 +204,7 @@ function PaymentTerm(_ref) {
|
|
|
204
204
|
className: "ncf__payment-term__description"
|
|
205
205
|
}, nameMap['custom'].price(option.price), nameMap['custom'].monthlyPrice(option.monthlyPrice && option.monthlyPrice !== '0' ? Number(option.monthlyPrice) : getMonthlyPriceFromPeriod(option.amount, option.currency, option.value)), nameMap['custom'].renewsText(getTimeFromPeriod(option.value))) : /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement("span", {
|
|
206
206
|
className: largePrice ? 'ncf__payment-term__large-price' : ''
|
|
207
|
-
},
|
|
208
|
-
value: option.price,
|
|
209
|
-
symbol: option.symbol
|
|
210
|
-
}).getAmountFormatted()), option.chargeOnText && /*#__PURE__*/_react["default"].createElement("p", {
|
|
207
|
+
}, option.price), option.chargeOnText && /*#__PURE__*/_react["default"].createElement("p", {
|
|
211
208
|
className: "ncf__payment-term__charge-on-text"
|
|
212
209
|
}, option.chargeOnText)));
|
|
213
210
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@financial-times/n-conversion-forms",
|
|
3
|
-
"version": "44.5.
|
|
3
|
+
"version": "44.5.2",
|
|
4
4
|
"description": "Containing jsx components and styles for forms included on Accounts and Acquisition apps (next-signup, next-profile, next-retention, etc).",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"scripts": {
|