Skip to content

Commit

Permalink
fix: resolved merge-conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
malmen237 committed Apr 17, 2024
1 parent 8364eb6 commit bd5793e
Showing 1 changed file with 4 additions and 35 deletions.
39 changes: 4 additions & 35 deletions src/components/production-line/production-line.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,24 +125,6 @@ export const ProductionLine: FC = () => {

useHeartbeat({ sessionId });

const exit = () => {
dispatch({
type: "UPDATE_JOIN_PRODUCTION_OPTIONS",
payload: null,
});
navigate("/");
};

useEffect(() => {
if (mediaStreamInput) {
mediaStreamInput.getTracks().forEach((track) => {
// eslint-disable-next-line no-param-reassign
track.enabled = !micMute;
console.log("Is audio enabled?", track.enabled);
});
}
}, [mediaStreamInput, micMute]);

const deviceLabels = useDeviceLabels({ joinProductionOptions });

useCheckBadLineData({
Expand Down Expand Up @@ -210,25 +192,12 @@ export const ProductionLine: FC = () => {
</ButtonIcon>
{isInputMuted ? "Muted" : "Unmuted"}
</UserControlBtn>
<LongPressToTalkButton
micMute={isInputMuted}
setMicMute={(input: boolean) => setIsInputMuted(input)}
/>
</TempDiv>
)}
<TempDiv>
<UserControlBtn
type="button"
onClick={() => {
setIsInputMuted(!isInputMuted);
}}
>
<ButtonIcon>
{isInputMuted ? <MicMuted /> : <MicUnmuted />}
</ButtonIcon>
{isInputMuted ? "Muted" : "Unmuted"}
</UserControlBtn>
<LongPressToTalkButton
micMute={isInputMuted}
setMicMute={(input: boolean) => setIsInputMuted(input)}
/>
</TempDiv>

{deviceLabels?.inputLabel && (
<TempDiv>
Expand Down

0 comments on commit bd5793e

Please sign in to comment.