@comicrelief/component-library 8.36.0 → 8.37.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.
- package/dist/components/Organisms/Donate/Form/Form.js +3 -0
- package/dist/components/Organisms/Donate/__snapshots__/Donate.test.js.snap +4 -4
- package/dist/components/Organisms/ImpactSlider/ImpactSlider.js +3 -0
- package/package.json +1 -1
- package/src/components/Organisms/Donate/Form/Form.js +2 -0
- package/src/components/Organisms/Donate/__snapshots__/Donate.test.js.snap +4 -4
- package/src/components/Organisms/ImpactSlider/ImpactSlider.js +7 -1
|
@@ -676,7 +676,7 @@ exports[`"Single Giving, No Money Buys, with overridden manual input value" rend
|
|
|
676
676
|
will help us fund amazing projects in the UK and around the world.
|
|
677
677
|
</p>
|
|
678
678
|
<button
|
|
679
|
-
className="c26"
|
|
679
|
+
className="c26 Button_DonateWidget"
|
|
680
680
|
color="red"
|
|
681
681
|
type="submit"
|
|
682
682
|
>
|
|
@@ -1341,7 +1341,7 @@ exports[`Monthly donation renders correctly 1`] = `
|
|
|
1341
1341
|
</strong>
|
|
1342
1342
|
</p>
|
|
1343
1343
|
<button
|
|
1344
|
-
className="c27"
|
|
1344
|
+
className="c27 Button_DonateWidget"
|
|
1345
1345
|
color="red"
|
|
1346
1346
|
type="submit"
|
|
1347
1347
|
>
|
|
@@ -2098,7 +2098,7 @@ exports[`Single donation renders correctly 1`] = `
|
|
|
2098
2098
|
a support worker to visit 10 isolated young mums with postnatal depression in the UK.
|
|
2099
2099
|
</p>
|
|
2100
2100
|
<button
|
|
2101
|
-
className="c25"
|
|
2101
|
+
className="c25 Button_DonateWidget"
|
|
2102
2102
|
color="red"
|
|
2103
2103
|
type="submit"
|
|
2104
2104
|
>
|
|
@@ -2593,7 +2593,7 @@ exports[`Single donation with no Money Buys renders correctly 1`] = `
|
|
|
2593
2593
|
</strong>
|
|
2594
2594
|
</p>
|
|
2595
2595
|
<button
|
|
2596
|
-
className="c20"
|
|
2596
|
+
className="c20 Button_DonateWidget"
|
|
2597
2597
|
color="red"
|
|
2598
2598
|
type="submit"
|
|
2599
2599
|
>
|
|
@@ -63,6 +63,9 @@ const ImpactSlider = _ref => {
|
|
|
63
63
|
type: "submit",
|
|
64
64
|
onClick: handleSubmit,
|
|
65
65
|
disabled: currentAmount === 0
|
|
66
|
+
// Used by analytics:
|
|
67
|
+
,
|
|
68
|
+
className: "Button_DonateSlider"
|
|
66
69
|
}, "Donate \xA3", currentAmount, ' ', "now")));
|
|
67
70
|
};
|
|
68
71
|
var _default = exports.default = ImpactSlider;
|
package/package.json
CHANGED
|
@@ -676,7 +676,7 @@ exports[`"Single Giving, No Money Buys, with overridden manual input value" rend
|
|
|
676
676
|
will help us fund amazing projects in the UK and around the world.
|
|
677
677
|
</p>
|
|
678
678
|
<button
|
|
679
|
-
className="c26"
|
|
679
|
+
className="c26 Button_DonateWidget"
|
|
680
680
|
color="red"
|
|
681
681
|
type="submit"
|
|
682
682
|
>
|
|
@@ -1341,7 +1341,7 @@ exports[`Monthly donation renders correctly 1`] = `
|
|
|
1341
1341
|
</strong>
|
|
1342
1342
|
</p>
|
|
1343
1343
|
<button
|
|
1344
|
-
className="c27"
|
|
1344
|
+
className="c27 Button_DonateWidget"
|
|
1345
1345
|
color="red"
|
|
1346
1346
|
type="submit"
|
|
1347
1347
|
>
|
|
@@ -2098,7 +2098,7 @@ exports[`Single donation renders correctly 1`] = `
|
|
|
2098
2098
|
a support worker to visit 10 isolated young mums with postnatal depression in the UK.
|
|
2099
2099
|
</p>
|
|
2100
2100
|
<button
|
|
2101
|
-
className="c25"
|
|
2101
|
+
className="c25 Button_DonateWidget"
|
|
2102
2102
|
color="red"
|
|
2103
2103
|
type="submit"
|
|
2104
2104
|
>
|
|
@@ -2593,7 +2593,7 @@ exports[`Single donation with no Money Buys renders correctly 1`] = `
|
|
|
2593
2593
|
</strong>
|
|
2594
2594
|
</p>
|
|
2595
2595
|
<button
|
|
2596
|
-
className="c20"
|
|
2596
|
+
className="c20 Button_DonateWidget"
|
|
2597
2597
|
color="red"
|
|
2598
2598
|
type="submit"
|
|
2599
2599
|
>
|
|
@@ -54,7 +54,13 @@ const ImpactSlider = ({
|
|
|
54
54
|
currentAmount={currentAmount}
|
|
55
55
|
opacityAnimation={opacityAnimation}
|
|
56
56
|
/>
|
|
57
|
-
<SubmitButton
|
|
57
|
+
<SubmitButton
|
|
58
|
+
type="submit"
|
|
59
|
+
onClick={handleSubmit}
|
|
60
|
+
disabled={currentAmount === 0}
|
|
61
|
+
// Used by analytics:
|
|
62
|
+
className="Button_DonateSlider"
|
|
63
|
+
>
|
|
58
64
|
Donate £
|
|
59
65
|
{currentAmount}
|
|
60
66
|
{' '}
|