Skip to content

Commit 23bfbd3

Browse files
authored
fix: UI상 반대로 표시된 캠 마이크 상태 고침 (#208)
마이크가 켜진 상태일 때 꺼진 것으로 UI 상 표시되는 문제. 캠도 이와 같은 문제가 있었음. 이를 해결.
1 parent 5a11446 commit 23bfbd3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

client/src/components/ConfMediaBar/StreamButton/CamButton/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ function CamButton({ isOn, setIsCamOn }: CamButtonProps) {
1616
return (
1717
<button onClick={onClick}>
1818
{isOn ? (
19-
<MdVideocamOff color={color.red} size={20} />
20-
) : (
2119
<MdVideocam color={color.green} size={20} />
20+
) : (
21+
<MdVideocamOff color={color.red} size={20} />
2222
)}
2323
</button>
2424
);

client/src/components/ConfMediaBar/StreamButton/MicButton/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ function MicButton({ isOn, setIsMicOn }: MicButtonProps) {
1616
return (
1717
<button onClick={onClick}>
1818
{isOn ? (
19-
<MdMicOff color={color.red} size={20} />
20-
) : (
2119
<MdMic color={color.green} size={20} />
20+
) : (
21+
<MdMicOff color={color.red} size={20} />
2222
)}
2323
</button>
2424
);

0 commit comments

Comments
 (0)