@@ -63,7 +63,7 @@ const Billing = props => {
6363 floatingLabelText = "Email"
6464 hintText = "Email"
6565 style = { Styles . fields . text }
66- validate = { [ Validators . required , Validators . email ] }
66+ validate = { [ Validators . email ] }
6767 />
6868 </ div >
6969
@@ -74,7 +74,6 @@ const Billing = props => {
7474 floatingLabelText = "Phone number"
7575 hintText = "Phone number"
7676 style = { Styles . fields . text }
77- validate = { [ Validators . required ] }
7877 />
7978 </ div >
8079
@@ -85,7 +84,6 @@ const Billing = props => {
8584 floatingLabelText = "Address"
8685 hintText = "Address"
8786 style = { Styles . fields . text }
88- validate = { [ Validators . required ] }
8987 />
9088 </ div >
9189
@@ -106,7 +104,6 @@ const Billing = props => {
106104 floatingLabelText = "City"
107105 hintText = "City"
108106 style = { Styles . fields . text }
109- validate = { [ Validators . required ] }
110107 />
111108 </ div >
112109
@@ -117,7 +114,6 @@ const Billing = props => {
117114 floatingLabelText = "Country"
118115 hintText = "Country"
119116 style = { Styles . fields . text }
120- validate = { [ Validators . required ] }
121117 >
122118 {
123119 Utils . countries . map ( x => < MenuItem key = { x . value } value = { x . value } primaryText = { x . text } /> )
@@ -132,7 +128,6 @@ const Billing = props => {
132128 floatingLabelText = "State"
133129 hintText = "State"
134130 style = { Styles . fields . text }
135- validate = { [ Validators . required ] }
136131 >
137132 {
138133 getStatesForCountry ( country ) . map ( x => < MenuItem key = { x . value } value = { x . value } primaryText = { x . text } /> )
@@ -146,7 +141,6 @@ const Billing = props => {
146141 component = { TextField }
147142 floatingLabelText = "Zip"
148143 style = { Styles . fields . text }
149- validate = { [ Validators . required ] }
150144 />
151145 </ div >
152146
@@ -156,7 +150,6 @@ const Billing = props => {
156150 component = { SelectField }
157151 floatingLabelText = "Credit card type"
158152 style = { Styles . fields . text }
159- validate = { [ Validators . required ] }
160153 >
161154 {
162155 getCreditCardsForCountry ( country ) . map ( x =>
@@ -173,7 +166,6 @@ const Billing = props => {
173166 floatingLabelText = "Credit Card Number"
174167 hintText = "Credit Card Number"
175168 style = { Styles . fields . text }
176- validate = { [ Validators . required ] }
177169 />
178170 </ div >
179171
@@ -183,7 +175,6 @@ const Billing = props => {
183175 component = { SelectField }
184176 floatingLabelText = "Expiry month"
185177 hintText = "Expiry month"
186- validate = { [ Validators . required ] }
187178 style = { Styles . fields . text }
188179 >
189180 {
@@ -202,12 +193,11 @@ const Billing = props => {
202193 floatingLabelText = "Expiry year"
203194 hintText = "Expiry year"
204195 style = { Styles . fields . text }
205- validate = { [ Validators . required ] }
206196 >
207197 {
208198 Array . apply ( null , new Array ( 10 ) ) . map ( ( x , i ) => {
209199 const year = new Date ( ) . getFullYear ( ) + i ;
210- return < MenuItem key = { year } value = { year } primaryText = { year } /> ;
200+ return < MenuItem key = { year } value = { year } primaryText = { year } /> ;
211201 } )
212202 }
213203 </ Field >
@@ -220,7 +210,6 @@ const Billing = props => {
220210 hintText = "CCV"
221211 floatingLabelText = "CCV"
222212 style = { Styles . fields . text }
223- validate = { [ Validators . required ] }
224213 />
225214 </ div >
226215 < div >
0 commit comments