chore: add missing react prop types (#1651)
This commit is contained in:
@ -99,5 +99,5 @@ RawEditor.propTypes = {
|
||||
onMode: PropTypes.func.isRequired,
|
||||
className: PropTypes.string.isRequired,
|
||||
value: PropTypes.string,
|
||||
field: ImmutablePropTypes.map,
|
||||
field: ImmutablePropTypes.map.isRequired,
|
||||
};
|
||||
|
@ -1,3 +1,5 @@
|
||||
/* eslint-disable react/prop-types */
|
||||
|
||||
import React from 'react';
|
||||
import { Map } from 'immutable';
|
||||
import styled, { css } from 'react-emotion';
|
||||
|
@ -64,6 +64,12 @@ export default class Toolbar extends React.Component {
|
||||
onAddAsset: PropTypes.func,
|
||||
getAsset: PropTypes.func,
|
||||
disabled: PropTypes.bool,
|
||||
onMarkClick: PropTypes.func,
|
||||
onBlockClick: PropTypes.func,
|
||||
onLinkClick: PropTypes.func,
|
||||
selectionHasMark: PropTypes.func,
|
||||
selectionHasBlock: PropTypes.func,
|
||||
selectionHasLink: PropTypes.func,
|
||||
};
|
||||
|
||||
isHidden = button => {
|
||||
|
@ -46,6 +46,7 @@ ToolbarButton.propTypes = {
|
||||
icon: PropTypes.string,
|
||||
onClick: PropTypes.func,
|
||||
isActive: PropTypes.func,
|
||||
isHidden: PropTypes.bool,
|
||||
disabled: PropTypes.bool,
|
||||
};
|
||||
|
||||
|
@ -40,7 +40,8 @@ export default class Editor extends React.Component {
|
||||
onMode: PropTypes.func.isRequired,
|
||||
className: PropTypes.string.isRequired,
|
||||
value: PropTypes.string,
|
||||
field: ImmutablePropTypes.map,
|
||||
field: ImmutablePropTypes.map.isRequired,
|
||||
getEditorComponents: PropTypes.func.isRequired,
|
||||
};
|
||||
|
||||
constructor(props) {
|
||||
|
@ -1,5 +1,6 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import ImmutablePropTypes from 'react-immutable-proptypes';
|
||||
import RawEditor from './RawEditor';
|
||||
import VisualEditor from './VisualEditor';
|
||||
|
||||
@ -19,6 +20,8 @@ export default class MarkdownControl extends React.Component {
|
||||
classNameWrapper: PropTypes.string.isRequired,
|
||||
editorControl: PropTypes.func.isRequired,
|
||||
value: PropTypes.string,
|
||||
field: ImmutablePropTypes.map.isRequired,
|
||||
getEditorComponents: PropTypes.func,
|
||||
};
|
||||
|
||||
static defaultProps = {
|
||||
|
@ -1,3 +1,5 @@
|
||||
/* eslint-disable react/prop-types */
|
||||
|
||||
import React from 'react';
|
||||
import Shortcode from './Shortcode';
|
||||
|
||||
|
Reference in New Issue
Block a user