EditProfile: fix checkboxes
This commit is contained in:
parent
b6f1de0a58
commit
a9cd4014f2
|
@ -353,6 +353,9 @@ const EditProfile: React.FC = () => {
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{/* HACK: wrap these checkboxes in a .simple_form container so they get styled (for now) */}
|
||||||
|
{/* Need a either move, replace, or refactor these checkboxes. */}
|
||||||
|
<div className='simple_form'>
|
||||||
{features.followRequests && (
|
{features.followRequests && (
|
||||||
<Checkbox
|
<Checkbox
|
||||||
label={<FormattedMessage id='edit_profile.fields.locked_label' defaultMessage='Lock account' />}
|
label={<FormattedMessage id='edit_profile.fields.locked_label' defaultMessage='Lock account' />}
|
||||||
|
@ -406,6 +409,8 @@ const EditProfile: React.FC = () => {
|
||||||
onChange={handleCheckboxChange('accepts_email_list')}
|
onChange={handleCheckboxChange('accepts_email_list')}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
</div>
|
||||||
|
|
||||||
{/* </FieldsGroup> */}
|
{/* </FieldsGroup> */}
|
||||||
{/*<FieldsGroup>
|
{/*<FieldsGroup>
|
||||||
<div className='fields-row__column fields-group'>
|
<div className='fields-row__column fields-group'>
|
||||||
|
|
|
@ -82,8 +82,8 @@ interface ISimpleInput {
|
||||||
}
|
}
|
||||||
|
|
||||||
export const SimpleInput: React.FC<ISimpleInput> = (props) => {
|
export const SimpleInput: React.FC<ISimpleInput> = (props) => {
|
||||||
const { hint, label, error, ...rest } = props;
|
const { hint, error, ...rest } = props;
|
||||||
const Input = label ? LabelInput : 'input';
|
const Input = props.label ? LabelInput : 'input';
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<InputContainer {...props}>
|
<InputContainer {...props}>
|
||||||
|
|
Loading…
Reference in New Issue