mirror of
https://github.com/vector-im/element-call.git
synced 2026-08-29 21:15:19 +00:00
update icon earpiece -> phone
This commit is contained in:
@@ -32,7 +32,7 @@ exports[`AppBar > renders 1`] = `
|
|||||||
xmlns="http://www.w3.org/2000/svg"
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
>
|
>
|
||||||
<path
|
<path
|
||||||
d="M12.207 5.293a1 1 0 0 1 0 1.414L7.914 11H18.5a1 1 0 1 1 0 2H7.914l4.293 4.293a1 1 0 0 1-1.414 1.414l-6-6a1 1 0 0 1 0-1.414l6-6a1 1 0 0 1 1.414 0"
|
d="M12 11.034a1 1 0 0 0 .29.702l.005.005c.18.18.43.29.705.29h8a1 1 0 0 0 0-2h-5.586L22 3.445a1 1 0 0 0-1.414-1.414L14 8.617V3.031a1 1 0 1 0-2 0zm0 1.963a1 1 0 0 0-.29-.702l-.005-.004A1 1 0 0 0 11 12H3a1 1 0 1 0 0 2h5.586L2 20.586A1 1 0 1 0 3.414 22L10 15.414V21a1 1 0 0 0 2 0z"
|
||||||
/>
|
/>
|
||||||
</svg>
|
</svg>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ import { useObservable, useObservableEagerState } from "observable-hooks";
|
|||||||
import { logger } from "matrix-js-sdk/lib/logger";
|
import { logger } from "matrix-js-sdk/lib/logger";
|
||||||
import { RoomAndToDeviceEvents } from "matrix-js-sdk/lib/matrixrtc/RoomAndToDeviceKeyTransport";
|
import { RoomAndToDeviceEvents } from "matrix-js-sdk/lib/matrixrtc/RoomAndToDeviceKeyTransport";
|
||||||
import {
|
import {
|
||||||
EarpieceIcon,
|
VoiceCallIcon,
|
||||||
VolumeOnSolidIcon,
|
VolumeOnSolidIcon,
|
||||||
} from "@vector-im/compound-design-tokens/assets/web/icons";
|
} from "@vector-im/compound-design-tokens/assets/web/icons";
|
||||||
import { useTranslation } from "react-i18next";
|
import { useTranslation } from "react-i18next";
|
||||||
@@ -457,7 +457,7 @@ export const InCallView: FC<InCallViewProps> = ({
|
|||||||
useMemo(() => {
|
useMemo(() => {
|
||||||
if (audioOutputSwitcher === null) return null;
|
if (audioOutputSwitcher === null) return null;
|
||||||
const isEarpieceTarget = audioOutputSwitcher.targetOutput === "earpiece";
|
const isEarpieceTarget = audioOutputSwitcher.targetOutput === "earpiece";
|
||||||
const Icon = isEarpieceTarget ? EarpieceIcon : VolumeOnSolidIcon;
|
const Icon = isEarpieceTarget ? VoiceCallIcon : VolumeOnSolidIcon;
|
||||||
const label = isEarpieceTarget
|
const label = isEarpieceTarget
|
||||||
? t("settings.devices.handset")
|
? t("settings.devices.handset")
|
||||||
: t("settings.devices.loudspeaker");
|
: t("settings.devices.loudspeaker");
|
||||||
|
|||||||
Reference in New Issue
Block a user