Selaa lähdekoodia

feat(native-participants-pane) resolved rebase conflicts and updated import paths

master
Calin Chitu 4 vuotta sitten
vanhempi
commit
36cb896680

+ 1
- 1
package.json Näytä tiedosto

@@ -39,7 +39,7 @@
39 39
     "@react-native-async-storage/async-storage": "1.13.2",
40 40
     "@react-native-community/google-signin": "3.0.1",
41 41
     "@react-native-community/netinfo": "4.1.5",
42
-    "@react-native-community/slider": "^3.0.3",
42
+    "@react-native-community/slider": "3.0.3",
43 43
     "@svgr/webpack": "4.3.2",
44 44
     "amplitude-js": "8.2.1",
45 45
     "base64-js": "1.3.1",

+ 1
- 1
react/features/participants-pane/components/AskToUnmuteButton.js Näytä tiedosto

@@ -5,7 +5,7 @@ import { useDispatch } from 'react-redux';
5 5
 
6 6
 import { approveParticipant } from '../../av-moderation/actions';
7 7
 
8
-import { QuickActionButton } from './styled';
8
+import { QuickActionButton } from './web/styled';
9 9
 
10 10
 type Props = {
11 11
 

+ 1
- 1
react/features/participants-pane/components/FooterContextMenu.js Näytä tiedosto

@@ -22,7 +22,7 @@ import { MuteEveryonesVideoDialog } from '../../video-menu/components';
22 22
 import {
23 23
     ContextMenu,
24 24
     ContextMenuItem
25
-} from './styled';
25
+} from './web/styled';
26 26
 
27 27
 const useStyles = makeStyles(() => {
28 28
     return {

+ 1
- 1
react/features/participants-pane/components/ParticipantQuickAction.js Näytä tiedosto

@@ -5,7 +5,7 @@ import React from 'react';
5 5
 import { QUICK_ACTION_BUTTON } from '../constants';
6 6
 
7 7
 import AskToUnmuteButton from './AskToUnmuteButton';
8
-import { QuickActionButton } from './styled';
8
+import { QuickActionButton } from './web/styled';
9 9
 
10 10
 type Props = {
11 11
 

+ 1
- 2
react/features/participants-pane/components/native/ContextMenuMeetingParticipantDetails.js Näytä tiedosto

@@ -10,8 +10,7 @@ import { Avatar } from '../../../base/avatar';
10 10
 import { hideDialog, openDialog } from '../../../base/dialog/actions';
11 11
 import BottomSheet from '../../../base/dialog/components/native/BottomSheet';
12 12
 import {
13
-    // eslint-disable-next-line no-unused-vars
14
-    Icon, IconCloseCircle, IconConnectionActive, IconMessage,
13
+    Icon, IconCloseCircle, IconMessage,
15 14
     IconMicrophoneEmptySlash,
16 15
     IconMuteEveryoneElse, IconVideoOff
17 16
 } from '../../../base/icons';

+ 3
- 3
react/features/participants-pane/components/native/MeetingParticipantItem.js Näytä tiedosto

@@ -8,7 +8,7 @@ import {
8 8
     getIsParticipantVideoMuted
9 9
 } from '../../../base/tracks';
10 10
 import { showContextMenuDetails } from '../../actions.native';
11
-import { MediaState } from '../../constants';
11
+import { MEDIA_STATE } from '../../constants';
12 12
 
13 13
 import ParticipantItem from './ParticipantItem';
14 14
 
@@ -29,11 +29,11 @@ export const MeetingParticipantItem = ({ participant: p }: Props) => {
29 29
 
30 30
     return (
31 31
         <ParticipantItem
32
-            audioMuteState = { isAudioMuted ? MediaState.Muted : MediaState.Unmuted }
32
+            audioMuteState = { isAudioMuted ? MEDIA_STATE.MUTED : MEDIA_STATE.UNMUTED }
33 33
             isKnockingParticipant = { false }
34 34
             name = { p.name }
35 35
             onPress = { openContextMenuDetails }
36 36
             participant = { p }
37
-            videoMuteState = { isVideoMuted ? MediaState.Muted : MediaState.Unmuted } />
37
+            videoMuteState = { isVideoMuted ? MEDIA_STATE.Muted : MEDIA_STATE.Unmuted } />
38 38
     );
39 39
 };

+ 6
- 6
react/features/participants-pane/components/native/ParticipantItem.js Näytä tiedosto

@@ -23,7 +23,7 @@ type Props = {
23 23
     /**
24 24
      * Media state for audio
25 25
      */
26
-    audioMuteState: MediaState,
26
+    audioMediaState: MediaState,
27 27
 
28 28
     /**
29 29
      * React children
@@ -58,7 +58,7 @@ type Props = {
58 58
     /**
59 59
      * Media state for video
60 60
      */
61
-    videoMuteState: MediaState
61
+    videoMediaState: MediaState
62 62
 }
63 63
 
64 64
 /**
@@ -72,8 +72,8 @@ function ParticipantItem({
72 72
     name,
73 73
     onPress,
74 74
     participant: p,
75
-    audioMuteState = MediaState.None,
76
-    videoMuteState = MediaState.None
75
+    audioMediaState = MediaState.None,
76
+    videoMediaState = MediaState.None
77 77
 }: Props) {
78 78
 
79 79
     const displayName = name || useSelector(getParticipantDisplayNameWithId(p.id));
@@ -102,8 +102,8 @@ function ParticipantItem({
102 102
                             p.raisedHand && <RaisedHandIndicator />
103 103
                         }
104 104
                         <View style = { styles.participantStatesContainer }>
105
-                            <View style = { styles.participantStateVideo }>{VideoStateIcons[videoMuteState]}</View>
106
-                            <View>{AudioStateIcons[audioMuteState]}</View>
105
+                            <View style = { styles.participantStateVideo }>{VideoStateIcons[videoMediaState]}</View>
106
+                            <View>{AudioStateIcons[audioMediaState]}</View>
107 107
                         </View>
108 108
                     </>
109 109
                 }

+ 2
- 2
react/features/participants-pane/components/web/LobbyParticipantItem.js Näytä tiedosto

@@ -4,8 +4,8 @@ import React, { useCallback } from 'react';
4 4
 import { useTranslation } from 'react-i18next';
5 5
 import { useDispatch } from 'react-redux';
6 6
 
7
-import { approveKnockingParticipant, rejectKnockingParticipant } from '../../lobby/actions';
8
-import { ACTION_TRIGGER, MEDIA_STATE } from '../constants';
7
+import { approveKnockingParticipant, rejectKnockingParticipant } from '../../../lobby/actions';
8
+import { ACTION_TRIGGER, MEDIA_STATE } from '../../constants';
9 9
 
10 10
 import ParticipantItem from './ParticipantItem';
11 11
 import { ParticipantActionButton } from './styled';

+ 2
- 2
react/features/participants-pane/components/web/styled.js Näytä tiedosto

@@ -1,8 +1,8 @@
1 1
 import React from 'react';
2 2
 import styled from 'styled-components';
3 3
 
4
-import { Icon, IconHorizontalPoints } from '../../base/icons';
5
-import { ACTION_TRIGGER } from '../constants';
4
+import { Icon, IconHorizontalPoints } from '../../../base/icons';
5
+import { ACTION_TRIGGER } from '../../constants';
6 6
 
7 7
 export const ignoredChildClassName = 'ignore-child';
8 8
 

Loading…
Peruuta
Tallenna