* Change models and related files * Update controllers and specs * More renaming * Seek and destroy, I mean search and replace * Round up the stragglers * Ground control to Major Travis... * More fixes * PR feedback * Various fixes * Rename view * Fix list query builder * Unify request specs * Fix some API spec errors * Fix remaining API specs * Make spec conform to API * Fix leftover problems * Fix JS tests * Fix column name in select * Fix API specs * Fix search specs * Paging Mr. Travis
29 lines
740 B
JavaScript
29 lines
740 B
JavaScript
import { h } from 'preact';
|
|
import PropTypes from 'prop-types';
|
|
|
|
const ContactViaConnect = ({ onChange, checked }) => (
|
|
<div className="field">
|
|
<label
|
|
id="label-contact-via-connect"
|
|
className="listingform__label"
|
|
htmlFor="contact_via_connect"
|
|
>
|
|
Allow Users to Message Me Via In-App Chat (DEV Connect)
|
|
</label>
|
|
<input
|
|
type="checkbox"
|
|
className="listingform__input listingform__contact_via_connect"
|
|
id="contact_via_connect"
|
|
name="listing[contact_via_connect]"
|
|
onInput={onChange}
|
|
checked={checked}
|
|
/>
|
|
</div>
|
|
);
|
|
|
|
ContactViaConnect.propTypes = {
|
|
onChange: PropTypes.func.isRequired,
|
|
checked: PropTypes.bool.isRequired,
|
|
};
|
|
|
|
export default ContactViaConnect;
|