docbrown/app/javascript/article-form/elements/orgSettings.jsx
Ben Halpern 87a7067a5c
Spruce up V2 editor look and feel (almost ready 🙂) (#846)
* Spruce up editor look and feel

* Update jest snapshots for editor

* Fix editor guide scoping issue
2018-10-07 11:06:52 -04:00

18 lines
537 B
JavaScript

import { h } from 'preact';
import PropTypes from 'prop-types';
const OrgSettings = ({ organization, postUnderOrg, onToggle }) => (
<div
className='articleform__orgsettings'
onClick={onToggle}
>
<img src={organization.profile_image_90} /> Post From {organization.name} <button class={postUnderOrg ? 'yes' : 'no'}>{postUnderOrg ? '✅ YES' : '◻️ NO'}</button>
</div>
);
OrgSettings.propTypes = {
onChange: PropTypes.func.isRequired,
defaultValue: PropTypes.string.isRequired,
};
export default OrgSettings;