Skip to content

Commit

Permalink
fix: cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Saelmala authored and malmen237 committed Nov 20, 2024
1 parent 5839811 commit 56a2dba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 13 deletions.
18 changes: 6 additions & 12 deletions src/components/production-line/production-line.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import { useCheckBadLineData } from "./use-check-bad-line-data.ts";
import { NavigateToRootButton } from "../navigate-to-root-button/navigate-to-root-button.tsx";
import { useAudioCue } from "./use-audio-cue.ts";
import { DisplayWarning } from "../display-box.tsx";
import { SettingsModal } from "./settings-modal.tsx";
import { SettingsModal, Hotkeys } from "./settings-modal.tsx";

const TempDiv = styled.div`
padding: 0 0 2rem 0;
Expand Down Expand Up @@ -120,12 +120,6 @@ const ConnectionErrorWrapper = styled(FlexContainer)`
padding-top: 12rem;
`;

type Hotkeys = {
muteHotkey: string;
speakerHotkey: string;
pressToTalkHotkey: string;
};

export const ProductionLine: FC = () => {
const { productionId: paramProductionId, lineId: paramLineId } = useParams();
const [
Expand Down Expand Up @@ -369,19 +363,19 @@ export const ProductionLine: FC = () => {
</SettingsBtn>
</HotkeyDiv>
<TempDiv>
<strong>{savedHotkeys.muteHotkey.toUpperCase()}:</strong>{" "}
<strong>{savedHotkeys.muteHotkey.toUpperCase()}: </strong>
Toggle Input Mute
</TempDiv>
<TempDiv>
<strong>
{savedHotkeys.speakerHotkey.toUpperCase()}:
</strong>{" "}
{savedHotkeys.speakerHotkey.toUpperCase()}:{" "}
</strong>
Toggle Output Mute
</TempDiv>
<TempDiv>
<strong>
{savedHotkeys.pressToTalkHotkey.toUpperCase()}:
</strong>{" "}
{savedHotkeys.pressToTalkHotkey.toUpperCase()}:{" "}
</strong>
Push to Talk
</TempDiv>
{isSettingsModalOpen && (
Expand Down
2 changes: 1 addition & 1 deletion src/components/production-line/settings-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const ButtonDiv = styled.div`
margin-top: 3rem;
`;

type Hotkeys = {
export type Hotkeys = {
muteHotkey: string;
speakerHotkey: string;
pressToTalkHotkey: string;
Expand Down

0 comments on commit 56a2dba

Please sign in to comment.