1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-30 02:21:17 +03:00

Use compound icons (#10292)

This commit is contained in:
Michael Weimann
2023-03-08 11:11:01 +01:00
committed by GitHub
parent 0db0d4b09d
commit 6fa00a20b0
43 changed files with 132 additions and 57 deletions

View File

@ -19,7 +19,7 @@ import { render, RenderResult, screen } from "@testing-library/react";
import userEvent from "@testing-library/user-event";
import { VoiceBroadcastControl } from "../../../../src/voice-broadcast";
import { Icon as StopIcon } from "../../../../res/img/element-icons/Stop.svg";
import { Icon as StopIcon } from "../../../../res/img/compound/stop-16.svg";
describe("VoiceBroadcastControl", () => {
let result: RenderResult;
@ -31,7 +31,8 @@ describe("VoiceBroadcastControl", () => {
describe("when rendering it", () => {
beforeEach(() => {
result = render(<VoiceBroadcastControl onClick={onClick} label="test label" icon={StopIcon} />);
const stopIcon = <StopIcon className="mx_Icon mx_Icon_16" />;
result = render(<VoiceBroadcastControl onClick={onClick} label="test label" icon={stopIcon} />);
});
it("should render as expected", () => {