flow: tame the beast (coding style)
This commit is contained in:
parent
0817482b9c
commit
cbd510bf7d
|
@ -162,7 +162,7 @@ class Dialog extends AbstractDialog<Props, State> {
|
||||||
// * If this Dialog has children, they are to be rendered
|
// * If this Dialog has children, they are to be rendered
|
||||||
// instead of Prompt's TextInput.
|
// instead of Prompt's TextInput.
|
||||||
if (children) {
|
if (children) {
|
||||||
// $FlowFixMe
|
// $FlowExpectedError
|
||||||
el = children; // eslint-disable-line no-param-reassign
|
el = children; // eslint-disable-line no-param-reassign
|
||||||
children = undefined;
|
children = undefined;
|
||||||
}
|
}
|
||||||
|
@ -173,7 +173,7 @@ class Dialog extends AbstractDialog<Props, State> {
|
||||||
if (style
|
if (style
|
||||||
&& (style = StyleSheet.flatten(style))
|
&& (style = StyleSheet.flatten(style))
|
||||||
&& _TAG_KEY in style) {
|
&& _TAG_KEY in style) {
|
||||||
// $FlowFixMe
|
// $FlowExpectedError
|
||||||
switch (style[_TAG_KEY]) {
|
switch (style[_TAG_KEY]) {
|
||||||
case _SUBMIT_TEXT_TAG_VALUE:
|
case _SUBMIT_TEXT_TAG_VALUE:
|
||||||
if (this.state.submitting) {
|
if (this.state.submitting) {
|
||||||
|
|
|
@ -15,6 +15,10 @@ import styles from './styles';
|
||||||
|
|
||||||
const ALERT_MILLISECONDS = 5 * 60 * 1000;
|
const ALERT_MILLISECONDS = 5 * 60 * 1000;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The type of the React {@code Component} props of
|
||||||
|
* {@link ConferenceNotification}.
|
||||||
|
*/
|
||||||
type Props = {
|
type Props = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -43,6 +47,10 @@ type Props = {
|
||||||
t: Function
|
t: Function
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The type of the React {@code Component} state of
|
||||||
|
* {@link ConferenceNotification}.
|
||||||
|
*/
|
||||||
type State = {
|
type State = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -70,6 +78,7 @@ class ConferenceNotification extends Component<Props, State> {
|
||||||
event: undefined
|
event: undefined
|
||||||
};
|
};
|
||||||
|
|
||||||
|
// Bind event handlers so they are only bound once per instance.
|
||||||
this._getNotificationContentStyle
|
this._getNotificationContentStyle
|
||||||
= this._getNotificationContentStyle.bind(this);
|
= this._getNotificationContentStyle.bind(this);
|
||||||
this._getNotificationPosition
|
this._getNotificationPosition
|
||||||
|
|
|
@ -13,6 +13,9 @@ import { refreshCalendar } from '../actions';
|
||||||
import { CALENDAR_ENABLED } from '../constants';
|
import { CALENDAR_ENABLED } from '../constants';
|
||||||
import styles from './styles';
|
import styles from './styles';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The tyoe of the React {@code Component} props of {@link MeetingList}.
|
||||||
|
*/
|
||||||
type Props = {
|
type Props = {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -77,6 +80,7 @@ class MeetingList extends Component<Props> {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
super(props);
|
super(props);
|
||||||
|
|
||||||
|
// Bind event handlers so they are only bound once per instance.
|
||||||
this._getRenderListEmptyComponent
|
this._getRenderListEmptyComponent
|
||||||
= this._getRenderListEmptyComponent.bind(this);
|
= this._getRenderListEmptyComponent.bind(this);
|
||||||
this._onPress = this._onPress.bind(this);
|
this._onPress = this._onPress.bind(this);
|
||||||
|
|
Loading…
Reference in New Issue