mirror of
https://github.com/vector-im/element-call.git
synced 2026-07-12 18:39:19 +00:00
fix back to video button
This commit is contained in:
@@ -14,10 +14,10 @@ import styles from "./EarpieceOverlay.module.css";
|
|||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
show: boolean;
|
show: boolean;
|
||||||
onBackButtonPressed?: (() => void) | null;
|
onBackToVideoPressed?: (() => void) | null;
|
||||||
}
|
}
|
||||||
|
|
||||||
export const EarpieceOverlay: FC<Props> = ({ show }) => {
|
export const EarpieceOverlay: FC<Props> = ({ show, onBackToVideoPressed }) => {
|
||||||
const { t } = useTranslation();
|
const { t } = useTranslation();
|
||||||
return (
|
return (
|
||||||
<div className={styles.overlay} data-show={show}>
|
<div className={styles.overlay} data-show={show}>
|
||||||
@@ -28,7 +28,13 @@ export const EarpieceOverlay: FC<Props> = ({ show }) => {
|
|||||||
{t("earpiece.overlay_title")}
|
{t("earpiece.overlay_title")}
|
||||||
</Heading>
|
</Heading>
|
||||||
<Text>{t("earpiece.overlay_description")}</Text>
|
<Text>{t("earpiece.overlay_description")}</Text>
|
||||||
<Button kind="primary" size="sm">
|
<Button
|
||||||
|
kind="primary"
|
||||||
|
size="sm"
|
||||||
|
onClick={() => {
|
||||||
|
onBackToVideoPressed?.();
|
||||||
|
}}
|
||||||
|
>
|
||||||
{t("earpiece.overlay_back_button")}
|
{t("earpiece.overlay_back_button")}
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -789,7 +789,7 @@ export const InCallView: FC<InCallViewProps> = ({
|
|||||||
<ReactionsAudioRenderer vm={vm} muted={muteAllAudio} />
|
<ReactionsAudioRenderer vm={vm} muted={muteAllAudio} />
|
||||||
<EarpieceOverlay
|
<EarpieceOverlay
|
||||||
show={earpieceMode}
|
show={earpieceMode}
|
||||||
onBackButtonPressed={toggleEarpieceMode}
|
onBackToVideoPressed={toggleEarpieceMode}
|
||||||
/>
|
/>
|
||||||
<ReactionsOverlay vm={vm} />
|
<ReactionsOverlay vm={vm} />
|
||||||
{footer}
|
{footer}
|
||||||
|
|||||||
Reference in New Issue
Block a user