Skip to content

Commit 997173d

Browse files
committed
Change html 'class' attribute to 'className'
1 parent cd4a573 commit 997173d

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/components/form.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function FormInput({label, help_text, error, inputRef, ...props}) {
2020
{label && <label>{label}</label>}
2121
<div className="rjf-input-group">
2222
<input {...props} />
23-
{help_text && <span class="rjf-help-text">{help_text}</span>}
23+
{help_text && <span className="rjf-help-text">{help_text}</span>}
2424
</div>
2525
</div>
2626
);
@@ -47,7 +47,7 @@ export function FormCheckInput({label, help_text, error, value, ...props}) {
4747
return (
4848
<div className="rjf-check-input">
4949
<label><input {...props} /> {label}</label>
50-
{help_text && <span class="rjf-help-text">{help_text}</span>}
50+
{help_text && <span className="rjf-help-text">{help_text}</span>}
5151
</div>
5252
);
5353
}
@@ -78,7 +78,7 @@ export function FormRadioInput({label, help_text, error, value, options, ...prop
7878
</label>
7979
);
8080
})}
81-
{help_text && <span class="rjf-help-text">{help_text}</span>}
81+
{help_text && <span className="rjf-help-text">{help_text}</span>}
8282
</div>
8383
);
8484
}
@@ -91,7 +91,7 @@ export function FormSelectInput({label, help_text, error, value, options, ...pro
9191
return (
9292
<div>
9393
{label && <label>{label}</label>}
94-
<div class="rjf-input-group">
94+
<div className="rjf-input-group">
9595
<select value={value || ''} {...props}>
9696
<option disabled value="" key={'__placehlder'}>Select...</option>
9797
{options.map((option, i) => {
@@ -113,7 +113,7 @@ export function FormSelectInput({label, help_text, error, value, options, ...pro
113113
);
114114
})}
115115
</select>
116-
{help_text && <span class="rjf-help-text">{help_text}</span>}
116+
{help_text && <span className="rjf-help-text">{help_text}</span>}
117117
</div>
118118
</div>
119119
);
@@ -513,7 +513,7 @@ export class FormTextareaInput extends React.Component {
513513
{label && <label>{label}</label>}
514514
<div className="rjf-input-group">
515515
<textarea {...props} />
516-
{help_text && <span class="rjf-help-text">{help_text}</span>}
516+
{help_text && <span className="rjf-help-text">{help_text}</span>}
517517
</div>
518518
</div>
519519
);
@@ -705,7 +705,7 @@ export class FormDateTimeInput extends React.Component {
705705
</div>
706706
</div>
707707
</div>
708-
{this.props.help_text && <span class="rjf-help-text">{this.props.help_text}</span>}
708+
{this.props.help_text && <span className="rjf-help-text">{this.props.help_text}</span>}
709709
</div>
710710
</div>
711711
);

0 commit comments

Comments
 (0)