* Initial work on v2 * Initial changes merger * Work to finalize v1/v2 editor adjustments * Clean up styling * Fiddle with form margins * Fix some tests * Change video * skip a couple tests * Modify tests to work with new code
14 lines
309 B
JavaScript
14 lines
309 B
JavaScript
import { h } from 'preact';
|
|
import PropTypes from 'prop-types';
|
|
|
|
const MainImage = ({ mainImage, onEdit }) => (
|
|
<div className="articleform__mainimage" onClick={onEdit}>
|
|
<img src={mainImage} />
|
|
</div>
|
|
);
|
|
|
|
MainImage.propTypes = {
|
|
mainImage: PropTypes.string.isRequired,
|
|
};
|
|
|
|
export default MainImage;
|