Skip to content
This repository was archived by the owner on May 31, 2020. It is now read-only.

Commit 16f778b

Browse files
committed
run prettier on a bunch of files
1 parent ea83086 commit 16f778b

File tree

3 files changed

+5
-21
lines changed

3 files changed

+5
-21
lines changed

packages/atomic-block/src/index.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff 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') {

packages/autocomplete/src/index.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff 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

packages/inline-style-toggle/src/index.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@ type InlineStyleProps = PluginProps & {
1717

1818
class 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 &&

0 commit comments

Comments
 (0)