Remove some Flow annotations

This commit is contained in:
Bettenbuk Zoltan
2019-03-21 17:38:29 +01:00
committed by Zoltan Bettenbuk
parent 19e8e8710a
commit 2a5adfc601
165 changed files with 211 additions and 252 deletions

View File

@@ -2,10 +2,10 @@
import React, { Component, type Node } from 'react';
import { TouchableWithoutFeedback, View } from 'react-native';
import { connect } from 'react-redux';
import { ColorSchemeRegistry } from '../../../color-scheme';
import { Modal } from '../../../react';
import { connect } from '../../../redux';
import { StyleType } from '../../../styles';
import { bottomSheetStyles as styles } from './styles';
@@ -107,5 +107,4 @@ function _mapStateToProps(state) {
};
}
// $FlowExpectedError
export default connect(_mapStateToProps)(BottomSheet);

View File

@@ -2,9 +2,9 @@
import React from 'react';
import { Text, TouchableOpacity } from 'react-native';
import { connect } from 'react-redux';
import { translate } from '../../../i18n';
import { connect } from '../../../redux';
import { StyleType } from '../../../styles';
import { _abstractMapStateToProps } from '../../functions';

View File

@@ -1,6 +1,6 @@
// @flow
import { connect } from 'react-redux';
import { connect } from '../../../redux';
import { _abstractMapStateToProps } from '../../functions';
@@ -21,5 +21,4 @@ class CustomDialog extends BaseDialog<Props, *> {
}
}
// $FlowExpectedError
export default connect(_abstractMapStateToProps)(CustomDialog);

View File

@@ -1,8 +1,7 @@
// @flow
import { connect } from 'react-redux';
import { translate } from '../../../i18n';
import { connect } from '../../../redux';
import { _abstractMapStateToProps } from '../../functions';

View File

@@ -1,4 +1,4 @@
import { connect } from 'react-redux';
import { connect } from '../../../redux';
import AbstractDialogContainer, {
abstractMapStateToProps

View File

@@ -2,9 +2,9 @@
import React from 'react';
import { View, Text, TextInput, TouchableOpacity } from 'react-native';
import { connect } from 'react-redux';
import { translate } from '../../../i18n';
import { connect } from '../../../redux';
import { StyleType } from '../../../styles';
import { _abstractMapStateToProps } from '../../functions';

View File

@@ -1,7 +1,8 @@
// @flow
import React from 'react';
import { connect } from 'react-redux';
import { connect } from '../../../redux';
import AbstractDialog from '../AbstractDialog';
import type { Props as AbstractDialogProps, State } from '../AbstractDialog';
@@ -84,5 +85,4 @@ class Dialog extends AbstractDialog<Props, State> {
_onSubmit: (?string) => void;
}
// $FlowExpectedError
export default connect()(Dialog);

View File

@@ -1,6 +1,7 @@
import { ModalTransition } from '@atlaskit/modal-dialog';
import React from 'react';
import { connect } from 'react-redux';
import { connect } from '../../../redux';
import AbstractDialogContainer, {
abstractMapStateToProps