change label on button
This commit is contained in:
@@ -322,8 +322,7 @@ export const MediaDevicesProvider: FC<Props> = ({ children }) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function useControlledOutput(): MediaDeviceHandle {
|
function useControlledOutput(): MediaDeviceHandle {
|
||||||
const { available, deviceForEarpiece: physicalDeviceForEarpiceMode } =
|
const { available } = useObservableEagerState(
|
||||||
useObservableEagerState(
|
|
||||||
useObservable(() => {
|
useObservable(() => {
|
||||||
const outputDeviceData$ = setAvailableOutputDevices$.pipe(
|
const outputDeviceData$ = setAvailableOutputDevices$.pipe(
|
||||||
startWith<OutputDevice[]>([]),
|
startWith<OutputDevice[]>([]),
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ import { type MatrixClient } from "matrix-js-sdk";
|
|||||||
import { Button, Root as Form, Separator } from "@vector-im/compound-web";
|
import { Button, Root as Form, Separator } from "@vector-im/compound-web";
|
||||||
import { type Room as LivekitRoom } from "livekit-client";
|
import { type Room as LivekitRoom } from "livekit-client";
|
||||||
import { useObservableEagerState } from "observable-hooks";
|
import { useObservableEagerState } from "observable-hooks";
|
||||||
// import { logger } from "matrix-js-sdk/lib/logger";
|
import { logger } from "matrix-js-sdk/lib/logger";
|
||||||
|
|
||||||
import { Modal } from "../Modal";
|
import { Modal } from "../Modal";
|
||||||
import styles from "./SettingsModal.module.css";
|
import styles from "./SettingsModal.module.css";
|
||||||
@@ -128,12 +128,12 @@ export const SettingsModal: FC<Props> = ({
|
|||||||
{iosDeviceMenu && (
|
{iosDeviceMenu && (
|
||||||
<Button
|
<Button
|
||||||
kind="secondary"
|
kind="secondary"
|
||||||
// onClick={(): void => {
|
onClick={(): void => {
|
||||||
// logger.log("Open native device picker");
|
logger.log("Open native device picker");
|
||||||
// // window.controls.showNativeOutputDevicePicker?.();
|
window.controls.showNativeOutputDevicePicker?.();
|
||||||
// }}
|
}}
|
||||||
>
|
>
|
||||||
{t("settings.devices.change_device_button")}
|
Test
|
||||||
</Button>
|
</Button>
|
||||||
)}
|
)}
|
||||||
<DeviceSelection
|
<DeviceSelection
|
||||||
|
|||||||
Reference in New Issue
Block a user