This repository was archived by the owner on May 31, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-21
lines changed Expand file tree Collapse file tree 3 files changed +5
-21
lines changed Original file line number Diff line number Diff line change @@ -58,9 +58,7 @@ class AtomicBlockPlugin extends Component<Props, State> {
5858 }
5959
6060 renderChildren = ( props : Object ) => {
61- const {
62- editorState,
63- } = this . props
61+ const { editorState } = this . props
6462
6563 const blockKey = props . block . getKey ( )
6664 const selection = editorState . getSelection ( )
@@ -77,10 +75,7 @@ class AtomicBlockPlugin extends Component<Props, State> {
7775 }
7876
7977 blockRendererFn = block => {
80- const {
81- type ,
82- editorState ,
83- } = this . props
78+ const { type, editorState } = this . props
8479 const content = editorState . getCurrentContent ( )
8580
8681 if ( block . getType ( ) === 'atomic' ) {
Original file line number Diff line number Diff line change @@ -44,9 +44,7 @@ class Suggestions extends Component<Props, State> {
4444 _unregister : ( ) = > void
4545
4646 componentDidMount ( ) {
47- const {
48- registerPlugin,
49- } = this . props
47+ const { registerPlugin } = this . props
5048
5149 this . _unregister = registerPlugin ( {
5250 onBlur : this . onBlur ,
@@ -100,11 +98,7 @@ class Suggestions extends Component<Props, State> {
10098 }
10199
102100 static getDerivedStateFromProps ( props , state ) {
103- const {
104- trigger ,
105- suggestions,
106- editorState,
107- } = props
101+ const { trigger , suggestions, editorState } = props
108102
109103 const selection = editorState . getSelection ( )
110104
Original file line number Diff line number Diff line change @@ -17,12 +17,7 @@ type InlineStyleProps = PluginProps & {
1717
1818class InlineStyleToggle extends Component < InlineStyleProps > {
1919 render ( ) {
20- const {
21- setEditorState,
22- editorState,
23- inlineStyle,
24- children,
25- } = this . props
20+ const { setEditorState, editorState, inlineStyle, children } = this . props
2621
2722 const hasStyle =
2823 editorState != null &&
You can’t perform that action at this time.
0 commit comments