flow: tame the beast (coding style)

This commit is contained in:
Lyubo Marinov
2018-06-04 14:52:51 -05:00
parent 0817482b9c
commit cbd510bf7d
3 changed files with 15 additions and 2 deletions

View File

@@ -15,6 +15,10 @@ import styles from './styles';
const ALERT_MILLISECONDS = 5 * 60 * 1000;
/**
* The type of the React {@code Component} props of
* {@link ConferenceNotification}.
*/
type Props = {
/**
@@ -43,6 +47,10 @@ type Props = {
t: Function
};
/**
* The type of the React {@code Component} state of
* {@link ConferenceNotification}.
*/
type State = {
/**
@@ -70,6 +78,7 @@ class ConferenceNotification extends Component<Props, State> {
event: undefined
};
// Bind event handlers so they are only bound once per instance.
this._getNotificationContentStyle
= this._getNotificationContentStyle.bind(this);
this._getNotificationPosition

View File

@@ -13,6 +13,9 @@ import { refreshCalendar } from '../actions';
import { CALENDAR_ENABLED } from '../constants';
import styles from './styles';
/**
* The tyoe of the React {@code Component} props of {@link MeetingList}.
*/
type Props = {
/**
@@ -77,6 +80,7 @@ class MeetingList extends Component<Props> {
constructor(props) {
super(props);
// Bind event handlers so they are only bound once per instance.
this._getRenderListEmptyComponent
= this._getRenderListEmptyComponent.bind(this);
this._onPress = this._onPress.bind(this);