Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
ref(ui-components) Use new Button on prejoin (#12372)
Robert Pintilii51bbc3f87f28
diff --git a/css/premeeting/_lobby.scss b/css/premeeting/_lobby.scssindex 13d0c04ef3..0a6c0d40cb 100644--- a/css/premeeting/_lobby.scss+++ b/css/premeeting/_lobby.scss@@ -204,3 +204,7 @@}}}++.lobby-button-margin {+ margin-bottom: 16px;+}diff --git a/react/features/base/ui/constants.ts b/react/features/base/ui/constants.tsindex 9879377876..09924d4b14 100644--- a/react/features/base/ui/constants.ts+++ b/react/features/base/ui/constants.ts@@ -190,7 +190,8 @@ export const commonStyles = (theme: Theme) => {},'.prejoin-dialog-btn': {- width: '309px'+ width: '309px',+ marginBottom: '8px'},'.prejoin-dialog-dialin-container': {diff --git a/react/features/lobby/components/web/LobbyScreen.js b/react/features/lobby/components/web/LobbyScreen.jsindex d59713ce2b..8bf401c654 100644--- a/react/features/lobby/components/web/LobbyScreen.js+++ b/react/features/lobby/components/web/LobbyScreen.js@@ -4,9 +4,10 @@ import React from 'react';import { translate } from '../../../base/i18n';import { Icon, IconClose } from '../../../base/icons';-import { ActionButton, InputField, PreMeetingScreen } from '../../../base/premeeting';+import { InputField, PreMeetingScreen } from '../../../base/premeeting';import { LoadingIndicator } from '../../../base/react';import { connect } from '../../../base/redux';+import Button from '../../../base/ui/components/web/Button';import ChatInput from '../../../chat/components/web/ChatInput';import MessageContainer from '../../../chat/components/web/MessageContainer';import AbstractLobbyScreen, {@@ -222,22 +223,22 @@ class LobbyScreen extends AbstractLobbyScreen<Props> {* @inheritdoc*/_renderPasswordJoinButtons() {- const { t } = this.props;-return (<>- <ActionButton+ <Button+ className = 'lobby-button-margin'+ fullWidth = { true }+ labelKey = 'prejoin.joinMeeting'onClick = { this._onJoinWithPassword }testId = 'lobby.passwordJoinButton'- type = 'primary'>- { t('prejoin.joinMeeting') }- </ActionButton>- <ActionButton+ type = 'primary' />+ <Button+ className = 'lobby-button-margin'+ fullWidth = { true }+ labelKey = 'lobby.backToKnockModeButton'onClick = { this._onSwitchToKnockMode }testId = 'lobby.backToKnockModeButton'- type = 'secondary'>- { t('lobby.backToKnockModeButton') }- </ActionButton>+ type = 'secondary' /></>);}@@ -248,30 +249,35 @@ class LobbyScreen extends AbstractLobbyScreen<Props> {* @inheritdoc*/_renderStandardButtons() {- const { _knocking, _isLobbyChatActive, _renderPassword, t } = this.props;+ const { _knocking, _isLobbyChatActive, _renderPassword } = this.props;return (<>- { _knocking || <ActionButton+ {_knocking || <Button+ className = 'lobby-button-margin'disabled = { !this.state.displayName }+ fullWidth = { true }+ labelKey = 'lobby.knockButton'onClick = { this._onAskToJoin }testId = 'lobby.knockButton'- type = 'primary'>- { t('lobby.knockButton') }- </ActionButton> }- { (_knocking && _isLobbyChatActive) && <ActionButton- className = 'open-chat-button'+ type = 'primary' />+ }+ {(_knocking && _isLobbyChatActive) && <Button+ className = 'lobby-button-margin open-chat-button'+ fullWidth = { true }+ labelKey = 'toolbar.openChat'onClick = { this._onToggleChat }testId = 'toolbar.openChat'- type = 'primary' >- { t('toolbar.openChat') }- </ActionButton> }- {_renderPassword && <ActionButton+ type = 'primary' />+ }+ {_renderPassword && <Button+ className = 'lobby-button-margin'+ fullWidth = { true }+ labelKey = 'lobby.enterPasswordButton'onClick = { this._onSwitchToPasswordMode }testId = 'lobby.enterPasswordButton'- type = 'secondary'>- { t('lobby.enterPasswordButton') }- </ActionButton> }+ type = 'secondary' />+ }</>);}diff --git a/react/features/prejoin/components/dialogs/DialInDialog.tsx b/react/features/prejoin/components/dialogs/DialInDialog.tsxindex 83ce9b0cad..0b59a1783a 100644--- a/react/features/prejoin/components/dialogs/DialInDialog.tsx+++ b/react/features/prejoin/components/dialogs/DialInDialog.tsx@@ -8,8 +8,7 @@ import { makeStyles } from 'tss-react/mui';import { translate } from '../../../base/i18n/functions';import Icon from '../../../base/icons/components/Icon';import { IconArrowLeft } from '../../../base/icons/svg';-// @ts-ignore-import { ActionButton } from '../../../base/premeeting';+import { Button } from '../../../base/ui/components/web';// @ts-ignoreimport { getCountryCodeFromPhone } from '../../utils';// @ts-ignore@@ -153,18 +152,18 @@ function DialinDialog(props: Props) {{t('prejoin.connectedWithAudioQ')}</Label><div className = 'prejoin-dialog-dialin-btns'>- <ActionButton+ <ButtonclassName = 'prejoin-dialog-btn'+ fullWidth = { true }+ labelKey = 'prejoin.joinMeeting'onClick = { onPrimaryButtonClick }- type = 'primary'>- {t('prejoin.joinMeeting')}- </ActionButton>- <ActionButton+ type = 'primary' />+ <ButtonclassName = 'prejoin-dialog-btn'+ fullWidth = { true }+ labelKey = 'dialog.Cancel'onClick = { onTextButtonClick }- type = 'text'>- {t('dialog.Cancel')}- </ActionButton>+ type = 'tertiary' /></div></div>);diff --git a/react/features/prejoin/components/dialogs/DialOutDialog.tsx b/react/features/prejoin/components/dialogs/DialOutDialog.tsxindex 5d464bdc83..21446a333e 100644--- a/react/features/prejoin/components/dialogs/DialOutDialog.tsx+++ b/react/features/prejoin/components/dialogs/DialOutDialog.tsx@@ -8,8 +8,7 @@ import { makeStyles } from 'tss-react/mui';import { translate } from '../../../base/i18n/functions';import Icon from '../../../base/icons/components/Icon';import { IconClose } from '../../../base/icons/svg';-// @ts-ignore-import { ActionButton } from '../../../base/premeeting';+import { Button } from '../../../base/ui/components/web';// @ts-ignoreimport Label from '../Label';// @ts-ignore@@ -77,12 +76,12 @@ function DialOutDialog(props: Props) {<div className = { classes.picker }><CountryPicker onSubmit = { onSubmit } /></div>- <ActionButton+ <ButtonclassName = 'prejoin-dialog-btn'+ fullWidth = { true }+ labelKey = 'prejoin.callMe'onClick = { onSubmit }- type = 'primary'>- {t('prejoin.callMe')}- </ActionButton>+ type = 'primary' /><div className = 'prejoin-dialog-delimiter-container'><div className = 'prejoin-dialog-delimiter' /><div className = 'prejoin-dialog-delimiter-txt-container'>@@ -92,12 +91,12 @@ function DialOutDialog(props: Props) {</div></div><div className = 'prejoin-dialog-dialin-container'>- <ActionButton+ <ButtonclassName = 'prejoin-dialog-btn'+ fullWidth = { true }+ labelKey = 'prejoin.iWantToDialIn'onClick = { onTextButtonClick }- type = 'text'>- {t('prejoin.iWantToDialIn')}- </ActionButton>+ type = 'tertiary' /></div></div>);