@@ -67,11 +67,11 @@ export function FormGroupCheckbox(props) {
67
67
68
68
FormGroupCheckbox . propTypes = {
69
69
disabled : PropTypes . oneOfType ( [ PropTypes . bool , PropTypes . func ] ) ,
70
- falseLabel : PropTypes . string ,
70
+ falseLabel : PropTypes . node ,
71
71
id : PropTypes . string . isRequired ,
72
72
name : PropTypes . string . isRequired ,
73
73
required : PropTypes . oneOfType ( [ PropTypes . bool , PropTypes . func ] ) ,
74
- trueLabel : PropTypes . string ,
74
+ trueLabel : PropTypes . node ,
75
75
} ;
76
76
77
77
export function FormGroupInput ( props ) {
@@ -125,7 +125,12 @@ FormGroupRadio.propTypes = {
125
125
id : PropTypes . string ,
126
126
inline : PropTypes . bool ,
127
127
name : PropTypes . string . isRequired ,
128
- options : PropTypes . arrayOf ( PropTypes . shape ( { value : PropTypes . any . isRequired , label : PropTypes . string . isRequired } ) ) ,
128
+ options : PropTypes . arrayOf (
129
+ PropTypes . shape ( {
130
+ value : PropTypes . any . isRequired ,
131
+ label : PropTypes . node . isRequired ,
132
+ } )
133
+ ) ,
129
134
required : PropTypes . oneOfType ( [ PropTypes . bool , PropTypes . func ] ) ,
130
135
} ;
131
136
@@ -146,7 +151,10 @@ FormGroupSelect.propTypes = {
146
151
PropTypes . arrayOf (
147
152
PropTypes . oneOfType ( [
148
153
PropTypes . string ,
149
- PropTypes . shape ( { value : PropTypes . any . isRequired , label : PropTypes . string . isRequired } ) ,
154
+ PropTypes . shape ( {
155
+ value : PropTypes . any . isRequired ,
156
+ label : PropTypes . node . isRequired ,
157
+ } ) ,
150
158
] )
151
159
) ,
152
160
] ) ,
@@ -165,11 +173,11 @@ export function FormGroupSwitch(props) {
165
173
166
174
FormGroupSwitch . propTypes = {
167
175
disabled : PropTypes . oneOfType ( [ PropTypes . bool , PropTypes . func ] ) ,
168
- falseLabel : PropTypes . string ,
176
+ falseLabel : PropTypes . node ,
169
177
id : PropTypes . string . isRequired ,
170
178
name : PropTypes . string . isRequired ,
171
179
required : PropTypes . oneOfType ( [ PropTypes . bool , PropTypes . func ] ) ,
172
- trueLabel : PropTypes . string ,
180
+ trueLabel : PropTypes . node ,
173
181
} ;
174
182
175
183
export function FormGroupTextarea ( props ) {
0 commit comments