Skip to content

Commit 16cfe77

Browse files
malmen237Linda Malm
andauthored
fix: removed unnecessary prop from ptt (#397)
Co-authored-by: Linda Malm <lindamalm@Lindas-MacBook-Pro.local>
1 parent 291112e commit 16cfe77

2 files changed

Lines changed: 2 additions & 7 deletions

File tree

src/components/production-line/long-press-to-talk-button.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import logger from "../../utils/logger";
66

77
type TLongPressToTalkButton = {
88
muteInput: (input: boolean) => void;
9-
text?: string;
109
};
1110

1211
const Button = styled(PrimaryButton)`
@@ -37,7 +36,6 @@ const Button = styled(PrimaryButton)`
3736

3837
export const LongPressToTalkButton = ({
3938
muteInput,
40-
text = "Push To Talk",
4139
}: TLongPressToTalkButton) => {
4240
const [isToggled, setIsToggled] = useState(false);
4341
const [longPressTimeout, setLongPressTimeout] =
@@ -93,7 +91,7 @@ export const LongPressToTalkButton = ({
9391
width: "100%",
9492
}}
9593
>
96-
{text}
94+
Push To Talk
9795
</span>
9896
</Button>
9997
);

src/components/production-line/minified-user-controls.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,7 @@ export const MinifiedUserControls = ({
6666
!line?.programOutputLine && (
6767
<MinifiedControlsBlock>
6868
<PTTWrapper>
69-
<LongPressToTalkButton
70-
muteInput={muteInput}
71-
text="Push To Talk"
72-
/>
69+
<LongPressToTalkButton muteInput={muteInput} />
7370
</PTTWrapper>
7471
</MinifiedControlsBlock>
7572
)}

0 commit comments

Comments
 (0)