Procházet zdrojové kódy

fix a missing doc string in Toolbox.js; reorder props alphabetically

master
Radium Zheng před 7 roky
rodič
revize
9c769a650e

+ 7
- 5
react/features/toolbox/components/web/Toolbox.js Zobrazit soubor

@@ -132,6 +132,11 @@ type Props = {
132 132
      */
133 133
     _localParticipantID: String,
134 134
 
135
+    /**
136
+     * The subsection of Redux state for local recording
137
+     */
138
+    _localRecState: Object,
139
+
135 140
     /**
136 141
      * Whether or not the overflow menu is visible.
137 142
      */
@@ -152,8 +157,6 @@ type Props = {
152 157
      */
153 158
     _sharingVideo: boolean,
154 159
 
155
-    _localRecState: Object,
156
-
157 160
     /**
158 161
      * Whether or not transcribing is enabled.
159 162
      */
@@ -164,7 +167,6 @@ type Props = {
164 167
      */
165 168
     _visible: boolean,
166 169
 
167
-    _localRecState: any,
168 170
 
169 171
     /**
170 172
      * Set with the buttons which this Toolbox should display.
@@ -1045,10 +1047,10 @@ function _mapStateToProps(state) {
1045 1047
         visible
1046 1048
     } = state['features/toolbox'];
1047 1049
     const localParticipant = getLocalParticipant(state);
1050
+    const localRecordingStates = state['features/local-recording'];
1048 1051
     const localVideo = getLocalVideoTrack(state['features/base/tracks']);
1049 1052
     const addPeopleEnabled = isAddPeopleEnabled(state);
1050 1053
     const dialOutEnabled = isDialOutEnabled(state);
1051
-    const localRecordingStates = state['features/local-recording'];
1052 1054
 
1053 1055
     let desktopSharingDisabledTooltipKey;
1054 1056
 
@@ -1086,8 +1088,8 @@ function _mapStateToProps(state) {
1086 1088
         _isGuest: state['features/base/jwt'].isGuest,
1087 1089
         _fullScreen: fullScreen,
1088 1090
         _localParticipantID: localParticipant.id,
1089
-        _overflowMenuVisible: overflowMenuVisible,
1090 1091
         _localRecState: localRecordingStates,
1092
+        _overflowMenuVisible: overflowMenuVisible,
1091 1093
         _raisedHand: localParticipant.raisedHand,
1092 1094
         _screensharing: localVideo && localVideo.videoType === 'desktop',
1093 1095
         _transcribingEnabled: transcribingEnabled,

Načítá se…
Zrušit
Uložit