File tree Expand file tree Collapse file tree
packages/donate-button-v4/src/components/widget
components/PaymentProcess/Frequency Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -67,6 +67,25 @@ export const Frequency = () => {
6767 < fieldset className = { fieldSetCss } >
6868 < legend className = { legendCss } > Frequency</ legend >
6969 < div className = { inputContainerCss ( primaryColor ) } >
70+ < div className = { inputItemCss ( primaryColor ) } >
71+ < input
72+ type = "radio"
73+ name = "frequency"
74+ id = "yearly"
75+ checked = { frequency === DonationFrequency . Yearly }
76+ value = { DonationFrequency . Yearly }
77+ />
78+ < label
79+ className = { inputLabelCss ( primaryColor ) }
80+ id = "frequency-yearly"
81+ htmlFor = "yearly"
82+ onClick = { ( ) => {
83+ setFrequency ( DonationFrequency . Yearly ) ;
84+ } }
85+ >
86+ Yearly
87+ </ label >
88+ </ div >
7089 < div className = { inputItemCss ( primaryColor ) } >
7190 < input
7291 type = "radio"
@@ -83,7 +102,7 @@ export const Frequency = () => {
83102 setFrequency ( DonationFrequency . Monthly ) ;
84103 } }
85104 >
86- Give Monthly
105+ Monthly
87106 </ label >
88107 </ div >
89108 < div className = { inputItemCss ( primaryColor ) } >
Original file line number Diff line number Diff line change 11export enum DonationFrequency {
22 Monthly = 'monthly' ,
33 OneTime = 'once' ,
4+ Yearly = 'yearly' ,
45 Unselected = ''
56}
You can’t perform that action at this time.
0 commit comments