Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 1 addition & 7 deletions src/components/Organisms/DonateBanner/DonateBanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ const DonateBanner = ({
subtitle = '',
monthlyTitle = '',
monthlySubtitle = '',
chooseAmountText = null,
monthlyChooseAmountText = null,
otherAmountText = 'will help us fund amazing projects in the UK and around the world.',
monthlyOtherAmountText = '',
hideMoneyBuys = false,
Expand Down Expand Up @@ -141,14 +139,12 @@ const DonateBanner = ({

<Form
data={data}
otherAmountText={thisOtherAmountText}
cartID={cartID}
clientID={clientID}
mbshipID={mbshipID}
donateLink={donateLink}
hideMoneyBuys={hideMoneyBuys}
chooseAmountText={chooseAmountText}
monthlyChooseAmountText={monthlyChooseAmountText}
otherAmountText={thisOtherAmountText}
donateWidgetIsTextOnly={donateWidgetIsTextOnly}
hasTopImage={shouldRenderTopImage}
shouldShowTitleSection={shouldShowTitleSection}
Expand Down Expand Up @@ -178,8 +174,6 @@ DonateBanner.propTypes = {
subtitle: PropTypes.string,
monthlyTitle: PropTypes.string,
monthlySubtitle: PropTypes.string,
chooseAmountText: PropTypes.string,
monthlyChooseAmountText: PropTypes.string,
otherAmountText: PropTypes.string,
monthlyOtherAmountText: PropTypes.string,
hideMoneyBuys: PropTypes.bool,
Expand Down
8 changes: 4 additions & 4 deletions src/components/Organisms/DonateBanner/DonateBanner.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ const imageS = {
/>;
```

## Image banner (widget left), monthly title/subtitle + choose amount text overrides, hidden moneybuys
## Image banner (widget left), monthly title/subtitle + amount text overrides, hidden moneybuys

```js
import data from './dev-data/data';
Expand Down Expand Up @@ -85,8 +85,8 @@ const imageS = {
subtitle="Your support can help people facing the toughest times."
monthlyTitle="Give monthly"
monthlySubtitle="A regular gift helps fund long-term impact."
chooseAmountText="Choose a one-off amount"
monthlyChooseAmountText="Choose a monthly amount"
otherAmountText="Choose a one-off amount"
monthlyOtherAmountText="Choose a monthly amount"
hideMoneyBuys
/>;
```
Expand All @@ -111,7 +111,7 @@ import data from './dev-data/data-single';
cartID="default-comicrelief"
title="Donate now"
subtitle="Make a difference today."
chooseAmountText="Enter an amount to give"
otherAmountText ="Enter an amount to give"
hideMoneyBuys
/>;
```
Expand Down
4 changes: 1 addition & 3 deletions src/components/Organisms/DonateBanner/Form/Form.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ const Signup = ({
)}
<FormFieldset>
<Label size="s" weight="500" color="black">
Enter another amount
{otherAmountText}
</Label>
<AmountField
$hideMoneyBuys={hideMoneyBuys}
Expand Down Expand Up @@ -317,8 +317,6 @@ Signup.propTypes = {
donateOrientation: PropTypes.oneOf(['left', 'right']),
hideMoneyBuys: PropTypes.bool,
data: PropTypes.objectOf(PropTypes.shape),
chooseAmountText: PropTypes.string,
monthlyChooseAmountText: PropTypes.string,
submitButtonColor: PropTypes.string,
changeGivingType: PropTypes.func.isRequired,
givingType: PropTypes.string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@ exports[`Monthly donation renders correctly 1`] = `
<span
className="c16 c17"
>
Enter another amount
will help us fund amazing projects in the UK and around the world.
</span>
<label
className="c18 c19"
Expand Down Expand Up @@ -1669,7 +1669,7 @@ exports[`Single donation renders correctly 1`] = `
<span
className="c19 c20"
>
Enter another amount
will help us fund amazing projects in the UK and around the world.
</span>
<label
className="c11 c21"
Expand Down Expand Up @@ -2284,7 +2284,7 @@ exports[`Single donation with no Money Buys renders correctly 1`] = `
<span
className="c11 c12"
>
Enter another amount
will help us fund amazing projects in the UK and around the world.
</span>
<label
className="c13 c14"
Expand Down Expand Up @@ -3209,7 +3209,7 @@ exports[`Text-only donate widget renders correctly 1`] = `
<span
className="c18 c19"
>
Enter another amount
will help us fund amazing projects in the UK and around the world.
</span>
<label
className="c20 c21"
Expand Down
Loading