@financial-times/n-conversion-forms 25.1.1 → 25.2.0

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.
@@ -11,6 +11,9 @@ exports[`Confirmation renders appropriately if is B2C Partnership 1`] = `
11
11
  <h1 class="ncf__header ncf__header--confirmation">
12
12
  </h1>
13
13
  </div>
14
+ <p class="ncf__paragraph">
15
+ We’ve sent confirmation to your email. Make sure you check your spam folder if you don’t receive it.
16
+ </p>
14
17
  <p class="ncf__paragraph">
15
18
  Here’s a summary of your subscription:
16
19
  </p>
@@ -20,6 +20,8 @@ export function Confirmation ({
20
20
  ...(isTrial && { 'data-signup-is-trial': 'true' }),
21
21
  };
22
22
 
23
+ const isB2cPartnershipCopyAvailable = isB2cPartnership && b2cPartnershipCopy.length > 0;
24
+
23
25
  const detailElements = details && (
24
26
  <React.Fragment>
25
27
  <h2 className="ncf__header2--afterline">Your billing details</h2>
@@ -64,14 +66,14 @@ export function Confirmation ({
64
66
  </div>
65
67
 
66
68
  {nextActionTop}
67
- {!isB2cPartnership && (
69
+ {!isB2cPartnershipCopyAvailable && (
68
70
  <p className="ncf__paragraph">
69
71
  We’ve sent confirmation to {email}. Make sure you check your spam folder
70
72
  if you don’t receive it.
71
73
  </p>
72
74
  )}
73
75
 
74
- {isB2cPartnership && b2cPartnershipCopy.length > 0 ? (
76
+ {isB2cPartnershipCopyAvailable ? (
75
77
  <p className="ncf__paragraph">
76
78
  {b2cPartnershipCopy[0]}
77
79
  <span className="ncf__legend">{` ${email}. `}</span>
@@ -45,6 +45,8 @@ function Confirmation(_ref) {
45
45
  'data-signup-is-trial': 'true'
46
46
  });
47
47
 
48
+ var isB2cPartnershipCopyAvailable = isB2cPartnership && b2cPartnershipCopy.length > 0;
49
+
48
50
  var detailElements = details && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("h2", {
49
51
  className: "ncf__header2--afterline"
50
52
  }, "Your billing details"), /*#__PURE__*/_react["default"].createElement("dl", {
@@ -79,9 +81,9 @@ function Confirmation(_ref) {
79
81
  className: "ncf__paragraph--reduced-padding ncf__paragraph--subscription-confirmation"
80
82
  }, "You are now subscribed to:"), /*#__PURE__*/_react["default"].createElement("h1", {
81
83
  className: "ncf__header ncf__header--confirmation"
82
- }, offer)), nextActionTop, !isB2cPartnership && /*#__PURE__*/_react["default"].createElement("p", {
84
+ }, offer)), nextActionTop, !isB2cPartnershipCopyAvailable && /*#__PURE__*/_react["default"].createElement("p", {
83
85
  className: "ncf__paragraph"
84
- }, "We\u2019ve sent confirmation to ", email, ". Make sure you check your spam folder if you don\u2019t receive it."), isB2cPartnership && b2cPartnershipCopy.length > 0 ? /*#__PURE__*/_react["default"].createElement("p", {
86
+ }, "We\u2019ve sent confirmation to ", email, ". Make sure you check your spam folder if you don\u2019t receive it."), isB2cPartnershipCopyAvailable ? /*#__PURE__*/_react["default"].createElement("p", {
85
87
  className: "ncf__paragraph"
86
88
  }, b2cPartnershipCopy[0], /*#__PURE__*/_react["default"].createElement("span", {
87
89
  className: "ncf__legend"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@financial-times/n-conversion-forms",
3
- "version": "25.1.1",
3
+ "version": "25.2.0",
4
4
  "description": "Containing jsx components and styles for forms included on Accounts and Acqusition apps (next-signup, next-profile, next-retention, etc).",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -84,6 +84,9 @@
84
84
 
85
85
  &__sub-title {
86
86
  @include oTypographySans($scale: -1, $include-font-family: false);
87
+ display: block;
88
+ margin-top: 2px;
89
+ margin-bottom: 2px;
87
90
  }
88
91
  }
89
92
  }