Remove some Flow annotations
This commit is contained in:
committed by
Zoltan Bettenbuk
parent
19e8e8710a
commit
2a5adfc601
@@ -3,10 +3,10 @@
|
||||
import React from 'react';
|
||||
import { SafeAreaView } from 'react-native';
|
||||
import { GiftedChat } from 'react-native-gifted-chat';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
import { translate } from '../../../base/i18n';
|
||||
import { BackButton, Header, HeaderLabel, Modal } from '../../../base/react';
|
||||
import { connect } from '../../../base/redux';
|
||||
|
||||
import AbstractChat, {
|
||||
_mapDispatchToProps,
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
// @flow
|
||||
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
import { getLocalParticipant } from '../../../base/participants';
|
||||
import { connect } from '../../../base/redux';
|
||||
import {
|
||||
AbstractButton,
|
||||
type AbstractButtonProps
|
||||
@@ -126,5 +125,4 @@ function _mapStateToProps(state) {
|
||||
};
|
||||
}
|
||||
|
||||
// $FlowExpectedError
|
||||
export default connect(_mapStateToProps, _mapDispatchToProps)(ChatButton);
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
|
||||
import React from 'react';
|
||||
import { Text, View } from 'react-native';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
import { getLocalizedDateFormatter, translate } from '../../../base/i18n';
|
||||
import { Avatar } from '../../../base/participants';
|
||||
import { connect } from '../../../base/redux';
|
||||
|
||||
import AbstractChatMessage, {
|
||||
_mapStateToProps as _abstractMapStateToProps,
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
// @flow
|
||||
|
||||
import React from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
import Transition from 'react-transition-group/Transition';
|
||||
|
||||
import { translate } from '../../../base/i18n';
|
||||
import { connect } from '../../../base/redux';
|
||||
|
||||
import AbstractChat, {
|
||||
_mapDispatchToProps,
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
// @flow
|
||||
|
||||
import React, { Component } from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
|
||||
import { connect } from '../../../base/redux';
|
||||
|
||||
import { getUnreadCount } from '../../functions';
|
||||
|
||||
@@ -57,5 +58,4 @@ function _mapStateToProps(state) {
|
||||
};
|
||||
}
|
||||
|
||||
// $FlowExpectedError
|
||||
export default connect(_mapStateToProps)(ChatCounter);
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
// @flow
|
||||
|
||||
import React, { Component } from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
import Emoji from 'react-emoji-render';
|
||||
import type { Dispatch } from 'redux';
|
||||
|
||||
import { connect } from '../../../base/redux';
|
||||
|
||||
import { sendMessage } from '../../actions';
|
||||
|
||||
import SmileysPanel from './SmileysPanel';
|
||||
@@ -232,5 +233,4 @@ class ChatInput extends Component<Props, State> {
|
||||
}
|
||||
}
|
||||
|
||||
// $FlowExpectedError
|
||||
export default connect()(ChatInput);
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
|
||||
import { FieldTextStateless } from '@atlaskit/field-text';
|
||||
import React, { Component } from 'react';
|
||||
import { connect } from 'react-redux';
|
||||
import type { Dispatch } from 'redux';
|
||||
|
||||
import { translate } from '../../../base/i18n';
|
||||
import { connect } from '../../../base/redux';
|
||||
import { updateSettings } from '../../../base/settings';
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user