* fix(layout): Fix Settings layout in firefox * chore(availableForHire): Remove available for hire setting * feat(helpers): Use helper components for Settings layout * fix(map): Fix undefined lang requested * feat(settings): Expand Settings page functionality * chore(pledge): Remove pledge from Settings * fix(about): Adjust AboutSettings layout * fix(portfolio): Improve PortfolioSettings layout * fix(email): Improve EmailSettings layout * fix(settings): Align save buttons with form fields * fix(AHP): Format AHP * fix(DangerZone): Adjust DangerZone layout * fix(projectSettings): Change Button Copy * fix(CertSettings): Fix certificate claim logic * chore(lint): Lint
43 lines
939 B
JavaScript
43 lines
939 B
JavaScript
import PropTypes from 'prop-types';
|
|
import React from 'react';
|
|
import {
|
|
Row,
|
|
Col,
|
|
ControlLabel
|
|
} from 'react-bootstrap';
|
|
|
|
import TB from '../Toggle-Button';
|
|
|
|
const propTypes = {
|
|
isLocked: PropTypes.bool,
|
|
toggleIsLocked: PropTypes.func.isRequired
|
|
};
|
|
|
|
export default function LockSettings({ isLocked, toggleIsLocked }) {
|
|
return (
|
|
<Row className='inline-form'>
|
|
<Col sm={ 8 } xs={ 12 }>
|
|
<ControlLabel htmlFor='isLocked'>
|
|
<p>
|
|
<strong>
|
|
Make all of my solutions private
|
|
<br />
|
|
<em>(this disables your certificates)</em>
|
|
</strong>
|
|
</p>
|
|
</ControlLabel>
|
|
</Col>
|
|
<Col sm={ 4 } xs={ 12 }>
|
|
<TB
|
|
name='isLocked'
|
|
onChange={ toggleIsLocked }
|
|
value={ isLocked }
|
|
/>
|
|
</Col>
|
|
</Row>
|
|
);
|
|
}
|
|
|
|
LockSettings.displayName = 'LockSettings';
|
|
LockSettings.propTypes = propTypes;
|