'use strict'; import React from 'react'; import { getLangText } from '../../utils/lang_utils'; let InputCheckbox = React.createClass({ propTypes: { required: React.PropTypes.string.isRequired, label: React.PropTypes.string.isRequired }, getInitialState() { return { show: false }; }, handleFocus() { this.refs.checkbox.getDOMNode().checked = !this.refs.checkbox.getDOMNode().checked; this.setState({ show: this.refs.checkbox.getDOMNode().checked, value: this.refs.checkbox.getDOMNode().checked }); }, render() { return ( {' ' + getLangText('I agree to the Terms of Service') + ' '} ( {getLangText('read')} ) ); } }); export default InputCheckbox;