use react 16

This commit is contained in:
masnn committed 2020-04-15 15:08:34 +08:00
1 parent 8c195661d7
commit d1ec9064fc
5 files changed
+129 -232

No files matched your search

@@ -71,7 +71,7 @@ export default class MessagePadInputContainer extends React.PureComponent {
store: PropTypes.object,
};
componentWillUpdate(nextProps) {
UNSAFE_componentWillUpdate(nextProps) { // eslint-disable-line camelcase
this.focusInput = (
nextProps.activeId !== this.props.activeId
|| this.props.isPosting !== nextProps.isPosting && nextProps.isPosting === false