Add ESLint rule (object-curly-spacing) (#3498)

This commit is contained in:
Yamagishi Kazutoshi
2017-06-02 00:25:10 +09:00
committed by Eugen Rochko
parent cb7ee4698f
commit fda5c699c2
9 changed files with 19 additions and 16 deletions

View File

@ -46,21 +46,21 @@ class EmojiPickerDropdown extends React.PureComponent {
}
onShowDropdown = () => {
this.setState({active: true});
this.setState({ active: true });
if (!EmojiPicker) {
this.setState({loading: true});
this.setState({ loading: true });
import(/* webpackChunkName: "emojione_picker" */ 'emojione-picker').then(TheEmojiPicker => {
EmojiPicker = TheEmojiPicker.default;
this.setState({loading: false});
this.setState({ loading: false });
}).catch(err => {
// TODO: show the user an error?
this.setState({loading: false});
this.setState({ loading: false });
});
}
}
onHideDropdown = () => {
this.setState({active: false});
this.setState({ active: false });
}
render () {