Skip to content

Commit a4cd803

Browse files
committed
mention-support: Prettier changes.
1 parent 47d5808 commit a4cd803

File tree

1 file changed

+39
-23
lines changed

1 file changed

+39
-23
lines changed

src/RichTextEditor.js

Lines changed: 39 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,12 @@ export default class RichTextEditor extends Component {
403403
};
404404

405405
_sendAction(action, data) {
406-
const escapedData = typeof data === 'string' ? this.escapeJSONString(data) : data;
407-
const jsToBeExecutedOnPage = MessageConverter({ type: action, data: escapedData });
406+
const escapedData =
407+
typeof data === 'string' ? this.escapeJSONString(data) : data;
408+
const jsToBeExecutedOnPage = MessageConverter({
409+
type: action,
410+
data: escapedData,
411+
});
408412
this.webview.injectJavaScript(`${jsToBeExecutedOnPage};true;`);
409413
}
410414

@@ -703,35 +707,47 @@ export default class RichTextEditor extends Component {
703707
}
704708

705709
_titleFocusHandler() {
706-
this.setState({
707-
isTitleFocused: true,
708-
}, () => {
709-
this.titleFocusHandler && this.titleFocusHandler();
710-
});
711-
};
710+
this.setState(
711+
{
712+
isTitleFocused: true,
713+
},
714+
() => {
715+
this.titleFocusHandler && this.titleFocusHandler();
716+
},
717+
);
718+
}
712719

713720
_titleBlurHandler() {
714-
this.setState({
715-
isTitleFocused: false,
716-
}, () => {
717-
this.titleBlurHandler && this.titleBlurHandler();
718-
});
721+
this.setState(
722+
{
723+
isTitleFocused: false,
724+
},
725+
() => {
726+
this.titleBlurHandler && this.titleBlurHandler();
727+
},
728+
);
719729
}
720730

721731
_contentFocusHandler() {
722-
this.setState({
723-
isContentFocused: true,
724-
}, () => {
725-
this.contentFocusHandler && this.contentFocusHandler();
726-
});
732+
this.setState(
733+
{
734+
isContentFocused: true,
735+
},
736+
() => {
737+
this.contentFocusHandler && this.contentFocusHandler();
738+
},
739+
);
727740
}
728741

729742
_contentBlurHandler() {
730-
this.setState({
731-
isContentFocused: false,
732-
}, () => {
733-
this.contentBlurHandler && this.contentBlurHandler();
734-
});
743+
this.setState(
744+
{
745+
isContentFocused: false,
746+
},
747+
() => {
748+
this.contentBlurHandler && this.contentBlurHandler();
749+
},
750+
);
735751
}
736752

737753
setTitleFocusHandler(callbackHandler) {

0 commit comments

Comments
 (0)