feat(participants-pane) changed to standard header

This commit is contained in:
Calin Chitu 2021-07-30 16:26:07 +03:00 committed by Saúl Ibarra Corretgé
parent d0be8dcf9d
commit bc9f5773fb
3 changed files with 6 additions and 39 deletions

View File

@ -592,6 +592,7 @@
}, },
"participantsPane": { "participantsPane": {
"close": "Close", "close": "Close",
"header": "Participants",
"headings": { "headings": {
"lobby": "Lobby ({{count}})", "lobby": "Lobby ({{count}})",
"participantsList": "Meeting participants ({{count}})", "participantsList": "Meeting participants ({{count}})",

View File

@ -7,7 +7,7 @@ import { Button } from 'react-native-paper';
import { useDispatch, useSelector } from 'react-redux'; import { useDispatch, useSelector } from 'react-redux';
import { openDialog } from '../../../base/dialog'; import { openDialog } from '../../../base/dialog';
import { Icon, IconClose, IconHorizontalPoints } from '../../../base/icons'; import { Icon, IconHorizontalPoints } from '../../../base/icons';
import { JitsiModal } from '../../../base/modal'; import { JitsiModal } from '../../../base/modal';
import { import {
getParticipantCount, getParticipantCount,
@ -40,21 +40,11 @@ const ParticipantsPane = () => {
return ( return (
<JitsiModal <JitsiModal
hideHeaderWithNavigation = { true } headerProps = {{
headerLabelKey: 'participantsPane.header'
}}
onClose = { closePane }
style = { styles.participantsPane }> style = { styles.participantsPane }>
<View style = { styles.header }>
<Button
/* eslint-disable-next-line react/jsx-no-bind */
icon = { () =>
(<Icon
size = { 20 }
src = { IconClose } />)
}
labelStyle = { styles.closeIcon }
mode = 'contained'
onPress = { closePane }
style = { styles.closeButton } />
</View>
<ScrollView> <ScrollView>
<LobbyParticipantList /> <LobbyParticipantList />
<MeetingParticipantList /> <MeetingParticipantList />

View File

@ -213,19 +213,6 @@ export default {
marginLeft: BaseTheme.spacing[3] marginLeft: BaseTheme.spacing[3]
}, },
header: {
alignItems: 'center',
backgroundColor: BaseTheme.palette.ui01,
top: BaseTheme.spacing[0],
display: 'flex',
flexDirection: 'row',
height: BaseTheme.spacing[10],
paddingRight: BaseTheme.spacing[3],
position: 'relative',
right: BaseTheme.spacing[0],
left: BaseTheme.spacing[0]
},
footer: { footer: {
alignItems: 'center', alignItems: 'center',
backgroundColor: BaseTheme.palette.ui01, backgroundColor: BaseTheme.palette.ui01,
@ -240,17 +227,6 @@ export default {
left: BaseTheme.spacing[0] left: BaseTheme.spacing[0]
}, },
closeButton: {
...smallButton,
marginLeft: 'auto'
},
closeIcon: {
...buttonContent,
height: BaseTheme.spacing[5],
marginLeft: 'auto'
},
inviteButton: { inviteButton: {
backgroundColor: BaseTheme.palette.action01, backgroundColor: BaseTheme.palette.action01,
marginTop: BaseTheme.spacing[2], marginTop: BaseTheme.spacing[2],