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

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

@@ -15,6 +15,10 @@ import styles from './styles';
15 15
 
16 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 22
 type Props = {
19 23
 
20 24
     /**
@@ -43,6 +47,10 @@ type Props = {
43 47
     t: Function
44 48
 };
45 49
 
50
+/**
51
+ * The type of the React {@code Component} state of
52
+ * {@link ConferenceNotification}.
53
+ */
46 54
 type State = {
47 55
 
48 56
     /**
@@ -70,6 +78,7 @@ class ConferenceNotification extends Component<Props, State> {
70 78
             event: undefined
71 79
         };
72 80
 
81
+        // Bind event handlers so they are only bound once per instance.
73 82
         this._getNotificationContentStyle
74 83
             = this._getNotificationContentStyle.bind(this);
75 84
         this._getNotificationPosition

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

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

Loading…
Cancel
Save