Browse Source

flow: tame the beast (coding style)

master
Lyubo Marinov 7 years ago
parent
commit
cbd510bf7d

+ 2
- 2
react/features/base/dialog/components/Dialog.native.js View File

162
                 // * If this Dialog has children, they are to be rendered
162
                 // * If this Dialog has children, they are to be rendered
163
                 //   instead of Prompt's TextInput.
163
                 //   instead of Prompt's TextInput.
164
                 if (children) {
164
                 if (children) {
165
-                    // $FlowFixMe
165
+                    // $FlowExpectedError
166
                     el = children; // eslint-disable-line no-param-reassign
166
                     el = children; // eslint-disable-line no-param-reassign
167
                     children = undefined;
167
                     children = undefined;
168
                 }
168
                 }
173
                 if (style
173
                 if (style
174
                         && (style = StyleSheet.flatten(style))
174
                         && (style = StyleSheet.flatten(style))
175
                         && _TAG_KEY in style) {
175
                         && _TAG_KEY in style) {
176
-                    // $FlowFixMe
176
+                    // $FlowExpectedError
177
                     switch (style[_TAG_KEY]) {
177
                     switch (style[_TAG_KEY]) {
178
                     case _SUBMIT_TEXT_TAG_VALUE:
178
                     case _SUBMIT_TEXT_TAG_VALUE:
179
                         if (this.state.submitting) {
179
                         if (this.state.submitting) {

+ 9
- 0
react/features/calendar-sync/components/ConferenceNotification.native.js View File

15
 
15
 
16
 const ALERT_MILLISECONDS = 5 * 60 * 1000;
16
 const ALERT_MILLISECONDS = 5 * 60 * 1000;
17
 
17
 
18
+/**
19
+ * The type of the React {@code Component} props of
20
+ * {@link ConferenceNotification}.
21
+ */
18
 type Props = {
22
 type Props = {
19
 
23
 
20
     /**
24
     /**
43
     t: Function
47
     t: Function
44
 };
48
 };
45
 
49
 
50
+/**
51
+ * The type of the React {@code Component} state of
52
+ * {@link ConferenceNotification}.
53
+ */
46
 type State = {
54
 type State = {
47
 
55
 
48
     /**
56
     /**
70
             event: undefined
78
             event: undefined
71
         };
79
         };
72
 
80
 
81
+        // Bind event handlers so they are only bound once per instance.
73
         this._getNotificationContentStyle
82
         this._getNotificationContentStyle
74
             = this._getNotificationContentStyle.bind(this);
83
             = this._getNotificationContentStyle.bind(this);
75
         this._getNotificationPosition
84
         this._getNotificationPosition

+ 4
- 0
react/features/calendar-sync/components/MeetingList.native.js View File

13
 import { CALENDAR_ENABLED } from '../constants';
13
 import { CALENDAR_ENABLED } from '../constants';
14
 import styles from './styles';
14
 import styles from './styles';
15
 
15
 
16
+/**
17
+ * The tyoe of the React {@code Component} props of {@link MeetingList}.
18
+ */
16
 type Props = {
19
 type Props = {
17
 
20
 
18
     /**
21
     /**
77
     constructor(props) {
80
     constructor(props) {
78
         super(props);
81
         super(props);
79
 
82
 
83
+        // Bind event handlers so they are only bound once per instance.
80
         this._getRenderListEmptyComponent
84
         this._getRenderListEmptyComponent
81
             = this._getRenderListEmptyComponent.bind(this);
85
             = this._getRenderListEmptyComponent.bind(this);
82
         this._onPress = this._onPress.bind(this);
86
         this._onPress = this._onPress.bind(this);

Loading…
Cancel
Save