@@ -103,6 +103,102 @@ const desktopPictures = require('../../../styleguide/data/data').defaultData;
103103/ > ;
104104```
105105
106+ ## Single Giving "No Money Buys" with overridden manual input value
107+
108+ ``` js
109+ import data from ' ./dev-data/data-single' ;
110+ const mobilePictures = require (' ../../../styleguide/data/data' ).mobileImages ;
111+ const desktopPictures = require (' ../../../styleguide/data/data' ).defaultData ;
112+ import { useState } from ' react' ;
113+
114+ // Simulating default state of a parent componenet
115+ const [amountDonate , setAmountDonate ] = useState (123.45 );
116+
117+ // Simulating state update of a parent componenet
118+ setTimeout (()=> {
119+ setAmountDonate (567.89 );
120+ }, 3000 );
121+
122+ < Donate
123+ mobileBackgroundColor= " blue_dark"
124+ desktopOverlayColor= " blue_dark"
125+ formAlignRight= {false }
126+ imageLow= {desktopPictures .imageLow }
127+ images= {desktopPictures .images }
128+ mobileImageLow= {mobilePictures .imageLow }
129+ mobileImages= {mobilePictures .images }
130+ data= {data}
131+ mbshipID= " mship-4"
132+ donateLink= " https://donation.comicrelief.com/"
133+ clientID= " donate"
134+ cartID= " default-comicrelief"
135+ title= " Donate Now"
136+ noMoneyBuys
137+ subtitle= " Please help us fund life-changing projects in the UK and around the world."
138+ otherAmountValue= {amountDonate}
139+ / > ;
140+ ```
141+
142+ ## Form align right, with red desktop overlay and purple mobile background colour, with a blue submit button, with overridden manual input value
143+
144+ ``` js
145+ import data from ' ./dev-data/data' ;
146+ const mobilePictures = require (' ../../../styleguide/data/data' ).mobileImages ;
147+ const desktopPictures = require (' ../../../styleguide/data/data' ).defaultData ;
148+ import { useState } from ' react' ;
149+
150+ // Simulating default state of a parent componenet
151+ const [amountDonate , setAmountDonate ] = useState (111.22 );
152+
153+ // Simulating state update of a parent componenet
154+ setTimeout (()=> {
155+ setAmountDonate (333.44 );
156+ }, 3000 );
157+
158+ < Donate
159+ alt= " Background image"
160+ formAlignRight= {true }
161+ imageLow= {desktopPictures .imageLow }
162+ images= {desktopPictures .images }
163+ mobileImageLow= {mobilePictures .imageLow }
164+ mobileImages= {mobilePictures .images }
165+ data= {data}
166+ mbshipID= " mship-1"
167+ donateLink= " https://donation.comicrelief.com/"
168+ clientID= " donate"
169+ cartID= " default-comicrelief"
170+ title= " Donate Now"
171+ subtitle= " Please help us fund life-changing projects in the UK and around the world."
172+ otherAmountValue= {amountDonate}
173+ / > ;
174+ ```
175+
176+ ## Form align left, with custom message after choosing an "Other amount" to donate, high value cart.
177+ ``` js
178+ import data from ' ./dev-data/data-high-value' ;
179+ const mobilePictures = require (' ../../../styleguide/data/data' ).mobileImages ;
180+ const desktopPictures = require (' ../../../styleguide/data/data' ).defaultData ;
181+
182+ < Donate
183+ mobileBackgroundColor= " blue_dark"
184+ desktopOverlayColor= " blue_dark"
185+ formAlignRight= {false }
186+ imageLow= {desktopPictures .imageLow }
187+ images= {desktopPictures .images }
188+ mobileImageLow= {mobilePictures .imageLow }
189+ mobileImages= {mobilePictures .images }
190+ data= {data}
191+ mbshipID= " mship-2"
192+ donateLink= " https://donation.comicrelief.com/"
193+ clientID= " donate"
194+ cartID= " default-comicrelief"
195+ title= " Donate Now"
196+ subtitle= " Please help us fund life-changing projects in the UK and around the world."
197+ otherAmountText= " Overridden via the 'Other amount text' prop"
198+ / > ;
199+ ```
200+
201+
106202## Form align right - no subtitle
107203
108204``` js
0 commit comments