@comicrelief/component-library 7.18.0 → 7.18.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.
@@ -82,7 +82,7 @@ var Signup = function Signup(_ref) {
82
82
  // If a specific 'other amount' has been passed down, use it,
83
83
  // otherwise assign based on the associated moneybuys:
84
84
  if (otherAmountValue) {
85
- setAmountDonate(parseFloat(otherAmountValue));
85
+ setAmountDonate(otherAmountValue);
86
86
  } else {
87
87
  var _givingData = givingType === 'single' ? singleGiving : regularGiving; // Check the 2nd moneybuy exists before using it;
88
88
  // 'philantrophy' carts have been set up to use a single moneybuy.
@@ -90,7 +90,7 @@ var Signup = function Signup(_ref) {
90
90
 
91
91
 
92
92
  var thisAmount = _givingData.moneybuys[1] ? _givingData.moneybuys[1].value : _givingData.moneybuys[0].value;
93
- setAmountDonate(parseFloat(thisAmount));
93
+ setAmountDonate(thisAmount);
94
94
  }
95
95
  }, [givingType, singleGiving, regularGiving, otherAmountValue]);
96
96
  (0, _react.useEffect)(function () {
@@ -101,7 +101,7 @@ var Signup = function Signup(_ref) {
101
101
  moneyBuyNewDescription = moneyBuy.description;
102
102
  }
103
103
 
104
- return index === 1 && amountDonate === ' ' && (setMoneyBuyCopy(moneyBuy.description), setAmountDonate(parseFloat(moneyBuy.value)));
104
+ return index === 1 && amountDonate === undefined && (setMoneyBuyCopy(moneyBuy.description), setAmountDonate(moneyBuy.value));
105
105
  });
106
106
 
107
107
  if (!(0, _Membership.isAmountValid)(amountDonate)) {
@@ -132,7 +132,7 @@ var Signup = function Signup(_ref) {
132
132
 
133
133
  (0, _react.useEffect)(function () {
134
134
  if (otherAmountValue) {
135
- setAmountDonate(parseFloat(otherAmountValue));
135
+ setAmountDonate(otherAmountValue);
136
136
  }
137
137
  }, [otherAmountValue, setAmountDonate]); // Create money buy boxes
138
138
 
@@ -156,7 +156,7 @@ var Signup = function Signup(_ref) {
156
156
  // 'philantrophy' carts have been set up to use a single moneybuy.
157
157
  // See ENG-1685 for more details
158
158
  var thisAmount = givingData.moneybuys[1] ? givingData.moneybuys[1].value : givingData.moneybuys[0].value;
159
- setAmountDonate(parseFloat(thisAmount));
159
+ setAmountDonate(thisAmount);
160
160
  }
161
161
  }, [errorMsg, givingData.moneybuys]); // Listen for click outside custom amount input if there is no value entered.
162
162
 
@@ -175,10 +175,10 @@ var Signup = function Signup(_ref) {
175
175
  }
176
176
 
177
177
  if (givingType === 'single') {
178
- return "Donate \xA3".concat((0, _Membership.amountFormatter)(amountDonate), " now");
178
+ return "Donate \xA3".concat(amountDonate, " now");
179
179
  }
180
180
 
181
- return "Donate \xA3".concat((0, _Membership.amountFormatter)(amountDonate), " monthly");
181
+ return "Donate \xA3".concat(amountDonate, " monthly");
182
182
  };
183
183
 
184
184
  return /*#__PURE__*/_react.default.createElement(_Donate.FormWrapper, null, showGivingSelector && /*#__PURE__*/_react.default.createElement(_GivingSelector.default, {
@@ -203,10 +203,10 @@ var Signup = function Signup(_ref) {
203
203
  var value = _ref2.value;
204
204
  return /*#__PURE__*/_react.default.createElement(_MoneyBuy.default, {
205
205
  isSelected: amountDonate === value,
206
- amount: (0, _Membership.amountFormatter)(value),
206
+ amount: value.toString(),
207
207
  description: "\xA3".concat((0, _Membership.amountFormatter)(value)),
208
208
  setOtherAmount: function setOtherAmount() {
209
- return setAmountDonate(parseFloat(value));
209
+ return setAmountDonate(value);
210
210
  },
211
211
  key: value,
212
212
  name: "".concat(mbshipID, "--moneyBuy").concat(index + 1),
@@ -218,7 +218,7 @@ var Signup = function Signup(_ref) {
218
218
  }, "Other amount"), /*#__PURE__*/_react.default.createElement(_Donate.AmountField, Object.assign({
219
219
  step: "0.01",
220
220
  name: "membership_amount",
221
- type: "number",
221
+ type: "string",
222
222
  inputBorderColor: (0, _Membership.isAmountValid)(amountDonate) === false,
223
223
  label: "\xA3",
224
224
  errorMsg: "",
@@ -227,23 +227,24 @@ var Signup = function Signup(_ref) {
227
227
  }, rest, {
228
228
  max: "25000",
229
229
  min: "1",
230
- value: (0, _Membership.amountFormatter)(amountDonate),
231
- pattern: "[^[0-9]+([,.][0-9]+)?$]",
230
+ value: amountDonate,
231
+ pattern: "[^[0-9]+([,.][0-9]+)?$]" // this only applies on submit
232
+ ,
232
233
  placeholder: "0.00",
233
234
  onChange: function onChange(e) {
234
- return setAmountDonate(parseFloat(e.target.value));
235
+ return setAmountDonate(e.target.value.trim());
235
236
  },
236
237
  "aria-label": "Input a different amount",
237
238
  ref: amountRef
238
239
  }))), amountDonate >= 1 && !noMoneyBuys && moneyBuyCopy && /*#__PURE__*/_react.default.createElement(_Donate.Copy, {
239
240
  as: "p"
240
- }, /*#__PURE__*/_react.default.createElement("strong", null, "\xA3".concat(amountDonate.toFixed(2), " ")), moneyBuyCopy), errorMsg && /*#__PURE__*/_react.default.createElement(_Donate.Error, {
241
+ }, /*#__PURE__*/_react.default.createElement("strong", null, "\xA3".concat(amountDonate, " ")), moneyBuyCopy), errorMsg && /*#__PURE__*/_react.default.createElement(_Donate.Error, {
241
242
  className: "error--amount",
242
243
  tag: "p"
243
244
  }, "Please enter an amount between \xA31 and \xA325000 and up to 2 decimal places"), noMoneyBuys ? /*#__PURE__*/_react.default.createElement(_Donate.Button, {
244
245
  type: "submit",
245
246
  color: submitButtonColor
246
- }, errorMsg ? 'Donate' : "Donate \xA3".concat((0, _Membership.amountFormatter)(amountDonate))) : /*#__PURE__*/_react.default.createElement(_Donate.Button, {
247
+ }, errorMsg ? 'Donate' : "Donate \xA3".concat(amountDonate)) : /*#__PURE__*/_react.default.createElement(_Donate.Button, {
247
248
  type: "submit",
248
249
  color: submitButtonColor,
249
250
  ref: buttonRef
@@ -252,8 +253,8 @@ var Signup = function Signup(_ref) {
252
253
 
253
254
  Signup.defaultProps = {
254
255
  noMoneyBuys: false,
255
- data: {},
256
- otherAmountValue: null
256
+ otherAmountValue: null,
257
+ data: {}
257
258
  };
258
259
  var _default = Signup;
259
260
  exports.default = _default;
@@ -628,8 +628,8 @@ exports[`"Single Giving, No Money Buys, with overridden manual input value" rend
628
628
  placeholder="0.00"
629
629
  required={false}
630
630
  step="0.01"
631
- type="number"
632
- value="345.67"
631
+ type="string"
632
+ value={345.67}
633
633
  />
634
634
  </div>
635
635
 
@@ -1358,7 +1358,7 @@ exports[`Monthly donation renders correctly 1`] = `
1358
1358
 
1359
1359
  <input
1360
1360
  aria-describedby="mship-1--moneyBuy-box1"
1361
- aria-label="£10.10"
1361
+ aria-label="£12.10"
1362
1362
  className="c23"
1363
1363
  id="mship-1--moneyBuy-box1"
1364
1364
  name="mship-1--moneyBuy1"
@@ -1366,7 +1366,7 @@ exports[`Monthly donation renders correctly 1`] = `
1366
1366
  placeholder=""
1367
1367
  required={false}
1368
1368
  type="button"
1369
- value="£ 10.10"
1369
+ value="£ 12.10"
1370
1370
  />
1371
1371
  </div>
1372
1372
 
@@ -1391,7 +1391,7 @@ exports[`Monthly donation renders correctly 1`] = `
1391
1391
 
1392
1392
  <input
1393
1393
  aria-describedby="mship-1--moneyBuy-box2"
1394
- aria-label="£20"
1394
+ aria-label="£20.00"
1395
1395
  className="c23"
1396
1396
  id="mship-1--moneyBuy-box2"
1397
1397
  name="mship-1--moneyBuy2"
@@ -1424,7 +1424,7 @@ exports[`Monthly donation renders correctly 1`] = `
1424
1424
 
1425
1425
  <input
1426
1426
  aria-describedby="mship-1--moneyBuy-box3"
1427
- aria-label="£30"
1427
+ aria-label="£30.00"
1428
1428
  className="c23"
1429
1429
  id="mship-1--moneyBuy-box3"
1430
1430
  name="mship-1--moneyBuy3"
@@ -1479,8 +1479,8 @@ exports[`Monthly donation renders correctly 1`] = `
1479
1479
  placeholder="0.00"
1480
1480
  required={false}
1481
1481
  step="0.01"
1482
- type="number"
1483
- value="10"
1482
+ type="string"
1483
+ value={10}
1484
1484
  />
1485
1485
  </div>
1486
1486
 
@@ -1490,7 +1490,7 @@ exports[`Monthly donation renders correctly 1`] = `
1490
1490
  className="c28"
1491
1491
  >
1492
1492
  <strong>
1493
- £10.00
1493
+ £10
1494
1494
  </strong>
1495
1495
  </p>
1496
1496
  <button
@@ -2192,8 +2192,8 @@ exports[`Single donation renders correctly 1`] = `
2192
2192
  placeholder="0.00"
2193
2193
  required={false}
2194
2194
  step="0.01"
2195
- type="number"
2196
- value="20"
2195
+ type="string"
2196
+ value={20}
2197
2197
  />
2198
2198
  </div>
2199
2199
 
@@ -2203,7 +2203,7 @@ exports[`Single donation renders correctly 1`] = `
2203
2203
  className="c23"
2204
2204
  >
2205
2205
  <strong>
2206
- £20.00
2206
+ £20
2207
2207
  </strong>
2208
2208
  a support worker to visit 10 isolated young mums with postnatal depression in the UK.
2209
2209
  </p>
@@ -2660,8 +2660,8 @@ exports[`Single donation with no Money Buys renders correctly 1`] = `
2660
2660
  placeholder="0.00"
2661
2661
  required={false}
2662
2662
  step="0.01"
2663
- type="number"
2664
- value="10"
2663
+ type="string"
2664
+ value={10}
2665
2665
  />
2666
2666
  </div>
2667
2667
 
@@ -9,25 +9,25 @@ var _default = {
9
9
  singleGiving: {
10
10
  moneybuys: [{
11
11
  description: 'a pregnant woman in Uganda to have access to a birth kit so she can have a clean, safe delivery.',
12
- value: 10.1
12
+ value: '12.10'
13
13
  }, {
14
14
  description: 'a support worker to visit 10 isolated young mums with postnatal depression in the UK.',
15
- value: 20
15
+ value: '20'
16
16
  }, {
17
17
  description: 'clothes for a child who has had to leave their possessions behind while escaping domestic abuse.',
18
- value: 30
18
+ value: '30'
19
19
  }]
20
20
  },
21
21
  regularGiving: {
22
22
  moneybuys: [{
23
23
  description: 'a regular supply of toiletries for someone living in a refugee camp in Serbia.',
24
- value: 5
24
+ value: '5.50'
25
25
  }, {
26
26
  description: 'a potentially lifesaving call for a man at risk of suicide in the UK.',
27
- value: 10
27
+ value: '10'
28
28
  }, {
29
29
  description: 'the distribution of enough surplus food for a school breakfast club to feed 80 children.',
30
- value: 20
30
+ value: '20'
31
31
  }]
32
32
  }
33
33
  };
@@ -197,7 +197,8 @@ var Signup = function Signup(_ref) {
197
197
  max: "25000",
198
198
  min: "1",
199
199
  value: userInput,
200
- pattern: "[^[0-9]+([,.][0-9]+)?$]",
200
+ pattern: "[^[0-9]+([,.][0-9]+)?$]" // this only applies on submit
201
+ ,
201
202
  placeholder: "0.00",
202
203
  onChange: function onChange(e) {
203
204
  return handleChange(e.target.value, otherDescription);
@@ -9,13 +9,13 @@ var _default = {
9
9
  regularGiving: {
10
10
  moneybuys: [{
11
11
  description: 'a regular supply of toiletries for someone living in a refugee camp in Serbia.',
12
- value: 5
12
+ value: '5'
13
13
  }, {
14
14
  description: 'a potentially lifesaving call for a man at risk of suicide in the UK.',
15
- value: 10
15
+ value: '10'
16
16
  }, {
17
17
  description: 'the distribution of enough surplus food for a school breakfast club to feed 80 children.',
18
- value: 20
18
+ value: '20'
19
19
  }]
20
20
  }
21
21
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@comicrelief/component-library",
3
3
  "author": "Comic Relief Engineering Team",
4
- "version": "7.18.0",
4
+ "version": "7.18.1",
5
5
  "main": "dist/index.js",
6
6
  "license": "ISC",
7
7
  "jest": {
@@ -52,7 +52,7 @@ const Signup = ({
52
52
  // If a specific 'other amount' has been passed down, use it,
53
53
  // otherwise assign based on the associated moneybuys:
54
54
  if (otherAmountValue) {
55
- setAmountDonate(parseFloat(otherAmountValue));
55
+ setAmountDonate(otherAmountValue);
56
56
  } else {
57
57
  const givingData = givingType === 'single' ? singleGiving : regularGiving;
58
58
 
@@ -63,7 +63,7 @@ const Signup = ({
63
63
  ? givingData.moneybuys[1].value
64
64
  : givingData.moneybuys[0].value;
65
65
 
66
- setAmountDonate(parseFloat(thisAmount));
66
+ setAmountDonate(thisAmount);
67
67
  }
68
68
  }, [givingType, singleGiving, regularGiving, otherAmountValue]);
69
69
 
@@ -79,9 +79,9 @@ const Signup = ({
79
79
 
80
80
  return (
81
81
  index === 1
82
- && amountDonate === ' '
82
+ && amountDonate === undefined
83
83
  && (setMoneyBuyCopy(moneyBuy.description),
84
- setAmountDonate(parseFloat(moneyBuy.value)))
84
+ setAmountDonate(moneyBuy.value))
85
85
  );
86
86
  });
87
87
 
@@ -136,7 +136,7 @@ const Signup = ({
136
136
  // Update the local state if the prop has been set and changed
137
137
  useEffect(() => {
138
138
  if (otherAmountValue) {
139
- setAmountDonate(parseFloat(otherAmountValue));
139
+ setAmountDonate(otherAmountValue);
140
140
  }
141
141
  }, [otherAmountValue, setAmountDonate]);
142
142
 
@@ -166,7 +166,7 @@ const Signup = ({
166
166
  ? givingData.moneybuys[1].value
167
167
  : givingData.moneybuys[0].value;
168
168
 
169
- setAmountDonate(parseFloat(thisAmount));
169
+ setAmountDonate(thisAmount);
170
170
  }
171
171
  }, [errorMsg, givingData.moneybuys]);
172
172
 
@@ -186,9 +186,9 @@ const Signup = ({
186
186
  return 'Donate';
187
187
  }
188
188
  if (givingType === 'single') {
189
- return `Donate £${amountFormatter(amountDonate)} now`;
189
+ return `Donate £${amountDonate} now`;
190
190
  }
191
- return `Donate £${amountFormatter(amountDonate)} monthly`;
191
+ return `Donate £${amountDonate} monthly`;
192
192
  };
193
193
 
194
194
  return (
@@ -226,9 +226,9 @@ const Signup = ({
226
226
  {givingData.moneybuys.map(({ value }, index) => (
227
227
  <MoneyBuy
228
228
  isSelected={amountDonate === value}
229
- amount={amountFormatter(value)}
229
+ amount={value.toString()}
230
230
  description={`£${amountFormatter(value)}`}
231
- setOtherAmount={() => setAmountDonate(parseFloat(value))}
231
+ setOtherAmount={() => setAmountDonate(value)}
232
232
  key={value}
233
233
  name={`${mbshipID}--moneyBuy${index + 1}`}
234
234
  id={`${mbshipID}--moneyBuy-box${index + 1}`}
@@ -245,7 +245,7 @@ const Signup = ({
245
245
  <AmountField
246
246
  step="0.01"
247
247
  name="membership_amount"
248
- type="number"
248
+ type="string"
249
249
  inputBorderColor={isAmountValid(amountDonate) === false}
250
250
  label="£"
251
251
  errorMsg=""
@@ -254,17 +254,17 @@ const Signup = ({
254
254
  {...rest}
255
255
  max="25000"
256
256
  min="1"
257
- value={amountFormatter(amountDonate)}
258
- pattern="[^[0-9]+([,.][0-9]+)?$]"
257
+ value={amountDonate}
258
+ pattern="[^[0-9]+([,.][0-9]+)?$]" // this only applies on submit
259
259
  placeholder="0.00"
260
- onChange={e => setAmountDonate(parseFloat(e.target.value))}
260
+ onChange={e => setAmountDonate(e.target.value.trim())}
261
261
  aria-label="Input a different amount"
262
262
  ref={amountRef}
263
263
  />
264
264
  </FormFieldset>
265
265
  {amountDonate >= 1 && !noMoneyBuys && moneyBuyCopy && (
266
266
  <Copy as="p">
267
- <strong>{`£${amountDonate.toFixed(2)} `}</strong>
267
+ <strong>{`£${amountDonate} `}</strong>
268
268
  {moneyBuyCopy}
269
269
  </Copy>
270
270
  )}
@@ -283,7 +283,7 @@ const Signup = ({
283
283
  >
284
284
  {errorMsg
285
285
  ? 'Donate'
286
- : `Donate £${amountFormatter(amountDonate)}`}
286
+ : `Donate £${amountDonate}`}
287
287
  </Button>
288
288
  ) : (
289
289
  <Button
@@ -318,8 +318,8 @@ Signup.propTypes = {
318
318
 
319
319
  Signup.defaultProps = {
320
320
  noMoneyBuys: false,
321
- data: {},
322
- otherAmountValue: null
321
+ otherAmountValue: null,
322
+ data: {}
323
323
  };
324
324
 
325
325
  export default Signup;
@@ -628,8 +628,8 @@ exports[`"Single Giving, No Money Buys, with overridden manual input value" rend
628
628
  placeholder="0.00"
629
629
  required={false}
630
630
  step="0.01"
631
- type="number"
632
- value="345.67"
631
+ type="string"
632
+ value={345.67}
633
633
  />
634
634
  </div>
635
635
 
@@ -1358,7 +1358,7 @@ exports[`Monthly donation renders correctly 1`] = `
1358
1358
 
1359
1359
  <input
1360
1360
  aria-describedby="mship-1--moneyBuy-box1"
1361
- aria-label="£10.10"
1361
+ aria-label="£12.10"
1362
1362
  className="c23"
1363
1363
  id="mship-1--moneyBuy-box1"
1364
1364
  name="mship-1--moneyBuy1"
@@ -1366,7 +1366,7 @@ exports[`Monthly donation renders correctly 1`] = `
1366
1366
  placeholder=""
1367
1367
  required={false}
1368
1368
  type="button"
1369
- value="£ 10.10"
1369
+ value="£ 12.10"
1370
1370
  />
1371
1371
  </div>
1372
1372
 
@@ -1391,7 +1391,7 @@ exports[`Monthly donation renders correctly 1`] = `
1391
1391
 
1392
1392
  <input
1393
1393
  aria-describedby="mship-1--moneyBuy-box2"
1394
- aria-label="£20"
1394
+ aria-label="£20.00"
1395
1395
  className="c23"
1396
1396
  id="mship-1--moneyBuy-box2"
1397
1397
  name="mship-1--moneyBuy2"
@@ -1424,7 +1424,7 @@ exports[`Monthly donation renders correctly 1`] = `
1424
1424
 
1425
1425
  <input
1426
1426
  aria-describedby="mship-1--moneyBuy-box3"
1427
- aria-label="£30"
1427
+ aria-label="£30.00"
1428
1428
  className="c23"
1429
1429
  id="mship-1--moneyBuy-box3"
1430
1430
  name="mship-1--moneyBuy3"
@@ -1479,8 +1479,8 @@ exports[`Monthly donation renders correctly 1`] = `
1479
1479
  placeholder="0.00"
1480
1480
  required={false}
1481
1481
  step="0.01"
1482
- type="number"
1483
- value="10"
1482
+ type="string"
1483
+ value={10}
1484
1484
  />
1485
1485
  </div>
1486
1486
 
@@ -1490,7 +1490,7 @@ exports[`Monthly donation renders correctly 1`] = `
1490
1490
  className="c28"
1491
1491
  >
1492
1492
  <strong>
1493
- £10.00
1493
+ £10
1494
1494
  </strong>
1495
1495
  </p>
1496
1496
  <button
@@ -2192,8 +2192,8 @@ exports[`Single donation renders correctly 1`] = `
2192
2192
  placeholder="0.00"
2193
2193
  required={false}
2194
2194
  step="0.01"
2195
- type="number"
2196
- value="20"
2195
+ type="string"
2196
+ value={20}
2197
2197
  />
2198
2198
  </div>
2199
2199
 
@@ -2203,7 +2203,7 @@ exports[`Single donation renders correctly 1`] = `
2203
2203
  className="c23"
2204
2204
  >
2205
2205
  <strong>
2206
- £20.00
2206
+ £20
2207
2207
  </strong>
2208
2208
  a support worker to visit 10 isolated young mums with postnatal depression in the UK.
2209
2209
  </p>
@@ -2660,8 +2660,8 @@ exports[`Single donation with no Money Buys renders correctly 1`] = `
2660
2660
  placeholder="0.00"
2661
2661
  required={false}
2662
2662
  step="0.01"
2663
- type="number"
2664
- value="10"
2663
+ type="string"
2664
+ value={10}
2665
2665
  />
2666
2666
  </div>
2667
2667
 
@@ -5,17 +5,17 @@ export default {
5
5
  {
6
6
  description:
7
7
  'a pregnant woman in Uganda to have access to a birth kit so she can have a clean, safe delivery.',
8
- value: 10.1
8
+ value: '12.10'
9
9
  },
10
10
  {
11
11
  description:
12
12
  'a support worker to visit 10 isolated young mums with postnatal depression in the UK.',
13
- value: 20
13
+ value: '20'
14
14
  },
15
15
  {
16
16
  description:
17
17
  'clothes for a child who has had to leave their possessions behind while escaping domestic abuse.',
18
- value: 30
18
+ value: '30'
19
19
  }
20
20
  ]
21
21
  },
@@ -24,17 +24,17 @@ export default {
24
24
  {
25
25
  description:
26
26
  'a regular supply of toiletries for someone living in a refugee camp in Serbia.',
27
- value: 5
27
+ value: '5.50'
28
28
  },
29
29
  {
30
30
  description:
31
31
  'a potentially lifesaving call for a man at risk of suicide in the UK.',
32
- value: 10
32
+ value: '10'
33
33
  },
34
34
  {
35
35
  description:
36
36
  'the distribution of enough surplus food for a school breakfast club to feed 80 children.',
37
- value: 20
37
+ value: '20'
38
38
  }
39
39
  ]
40
40
  }
@@ -173,7 +173,7 @@ const Signup = ({
173
173
  max="25000"
174
174
  min="1"
175
175
  value={userInput}
176
- pattern="[^[0-9]+([,.][0-9]+)?$]"
176
+ pattern="[^[0-9]+([,.][0-9]+)?$]" // this only applies on submit
177
177
  placeholder="0.00"
178
178
  onChange={e => handleChange(e.target.value, otherDescription)}
179
179
  onClick={e => hightlightInput(e.target.value, otherDescription)}
@@ -41,7 +41,7 @@ const MoneyBuy = ({
41
41
  );
42
42
 
43
43
  MoneyBuy.propTypes = {
44
- amount: PropTypes.number,
44
+ amount: PropTypes.string,
45
45
  currency: PropTypes.string,
46
46
  description: PropTypes.string,
47
47
  // Function already set does'nt need to be passed as props
@@ -5,17 +5,17 @@ export default {
5
5
  {
6
6
  description:
7
7
  'a regular supply of toiletries for someone living in a refugee camp in Serbia.',
8
- value: 5
8
+ value: '5'
9
9
  },
10
10
  {
11
11
  description:
12
12
  'a potentially lifesaving call for a man at risk of suicide in the UK.',
13
- value: 10
13
+ value: '10'
14
14
  },
15
15
  {
16
16
  description:
17
17
  'the distribution of enough surplus food for a school breakfast club to feed 80 children.',
18
- value: 20
18
+ value: '20'
19
19
  }
20
20
  ]
21
21
  }