* 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
26 lines
743 B
JavaScript
26 lines
743 B
JavaScript
import { h } from 'preact';
|
|
import PropTypes from 'prop-types';
|
|
|
|
const BodyMarkdown = ({ onChange, defaultValue }) => (
|
|
<div className="field">
|
|
<label className="listingform__label" htmlFor="body_markdown">
|
|
Body Markdown
|
|
<textarea
|
|
className="listingform__input listingform__bodymarkdown"
|
|
id="body_markdown"
|
|
name="listing[body_markdown]"
|
|
maxLength="400"
|
|
placeholder="400 characters max, 12 line break max, no images allowed, *markdown is encouraged*"
|
|
value={defaultValue}
|
|
onInput={onChange}
|
|
/>
|
|
</label>
|
|
</div>
|
|
);
|
|
|
|
BodyMarkdown.propTypes = {
|
|
onChange: PropTypes.func.isRequired,
|
|
defaultValue: PropTypes.string.isRequired,
|
|
};
|
|
|
|
export default BodyMarkdown;
|