* Create alternate editor * Install linkstate (?) Not sure how it disappear in the first place * Run yarn install * Modulize ArticleForm component * Refactor * Isolating css WIP * Implement simplified frontmatter-less editor * Modulize individual form element * Ajust props names * Transform json params to snakecase * Remove codes * Update /new, almost there for release * Fix editor resize issues * Change defaultvalue to value in article form tag element * Modify html buttons in article form
19 lines
539 B
JavaScript
19 lines
539 B
JavaScript
import { h } from 'preact';
|
|
import PropTypes from 'prop-types';
|
|
|
|
const OrgSettings = ({ organization, postUnderOrg, onToggle }) => (
|
|
<div
|
|
className='articleform__orgsettings'
|
|
style={{backgroundColor: organization.bg_color_hex, color: organization.text_color_hex}}
|
|
onClick={onToggle}
|
|
>
|
|
Post From {organization.name} <button>{postUnderOrg ? 'YES' : 'NO'}</button>
|
|
</div>
|
|
);
|
|
|
|
OrgSettings.propTypes = {
|
|
onChange: PropTypes.func.isRequired,
|
|
defaultValue: PropTypes.string.isRequired,
|
|
};
|
|
|
|
export default OrgSettings;
|