diff --git a/react/features/lobby/actions.any.js b/react/features/lobby/actions.any.js index 6ae4745a7..75f6f5b89 100644 --- a/react/features/lobby/actions.any.js +++ b/react/features/lobby/actions.any.js @@ -23,24 +23,3 @@ export function toggleLobbyMode(enabled: boolean) { } }; } - -/** - * Approves (lets in) or rejects a knocking participant. - * - * @param {string} id - The id of the knocking participant. - * @param {boolean} approved - True if the participant is approved, false otherwise. - * @returns {Function} - */ -export function setKnockingParticipantApproval(id: string, approved: boolean) { - return async (dispatch: Dispatch, getState: Function) => { - const conference = getCurrentConference(getState); - - if (conference) { - if (approved) { - conference.lobbyApproveAccess(id); - } else { - conference.lobbyDenyAccess(id); - } - } - }; -} diff --git a/react/features/lobby/actions.native.js b/react/features/lobby/actions.native.js index b35b46839..19f68c808 100644 --- a/react/features/lobby/actions.native.js +++ b/react/features/lobby/actions.native.js @@ -5,7 +5,6 @@ import { openDialog } from '../base/dialog'; import { DisableLobbyModeDialog, EnableLobbyModeDialog } from './components/native'; export * from './actions.web'; -export * from './actions.any'; /** * Action to show the dialog to disable lobby mode. diff --git a/react/features/participants-pane/actions.native.js b/react/features/participants-pane/actions.native.js deleted file mode 100644 index 7e5279fe7..000000000 --- a/react/features/participants-pane/actions.native.js +++ /dev/null @@ -1,3 +0,0 @@ -// @flow - -export * from './actions.any'; diff --git a/react/features/participants-pane/actions.web.js b/react/features/participants-pane/actions.web.js deleted file mode 100644 index 7e5279fe7..000000000 --- a/react/features/participants-pane/actions.web.js +++ /dev/null @@ -1,3 +0,0 @@ -// @flow - -export * from './actions.any'; diff --git a/react/features/participants-pane/components/native/Button.js b/react/features/participants-pane/components/native/Button.js deleted file mode 100644 index 60b6d714c..000000000 --- a/react/features/participants-pane/components/native/Button.js +++ /dev/null @@ -1,115 +0,0 @@ -// @flow - -import React from 'react'; -import { View } from 'react-native'; -import { Button as PaperButton } from 'react-native-paper'; - -import { Icon } from '../../../base/icons'; - -let buttonContent; - -/** - * The type of the React {@code Component} props of {@link Button} - */ -type Props = { - - /** - * Button content. - */ - content?: string, - - /** - * Is the button icon type? - */ - iconButton?: boolean, - - /** - * Style for the icon - */ - iconStyle?: Object, - - /** - * Size of the icon. - */ - iconSize?: number, - - /** - * Icon component source. - */ - iconSrc?: Object, - - /** - * Button mode. - */ - mode?: string, - - /** - * Style of button's inner content. - */ - contentStyle?: Object, - - /** - * The action to be performed when the button is pressed. - */ - onPress?: Function, - - /** - * An external style object passed to the component. - */ - style?: Object, - - /** - * Theme to be applied. - */ - theme?: Object -}; - -/** - * Close button component. - * - * @returns {React$Element} - */ -function Button({ - iconButton, - iconStyle, - iconSize, - iconSrc, - content, - contentStyle, - mode, - onPress, - style, - theme -}: Props) { - - if (iconButton) { - buttonContent - = ( - - ); - - } else { - buttonContent = content; - } - - return ( - - { buttonContent } - - ); -} - -export default Button; diff --git a/react/features/participants-pane/components/native/ParticipantsPane.js b/react/features/participants-pane/components/native/ParticipantsPane.js index 9a2ddf99e..2a1b515a1 100644 --- a/react/features/participants-pane/components/native/ParticipantsPane.js +++ b/react/features/participants-pane/components/native/ParticipantsPane.js @@ -3,16 +3,14 @@ import React, { useCallback } from 'react'; import { useTranslation } from 'react-i18next'; import { View } from 'react-native'; -import { withTheme } from 'react-native-paper'; +import { Button, withTheme } from 'react-native-paper'; import { useDispatch, useSelector } from 'react-redux'; -import { IconClose, IconHorizontalPoints } from '../../../base/icons'; +import { Icon, IconClose, IconHorizontalPoints } from '../../../base/icons'; import { JitsiModal } from '../../../base/modal'; import { isLocalParticipantModerator } from '../../../base/participants'; import { close } from '../../actions.any'; -import Button from './Button'; -import { LobbyParticipantList } from './LobbyParticipantList'; import styles from './styles'; @@ -47,11 +45,13 @@ function ParticipantsPane({ theme }: Props) { style = { styles.participantsPane }> +