Skip to content

🎥 Make videos programmatically with React

Remove unused combobox disabled prop

JonnyBurger094e23bfa9ef
diff --git a/packages/studio/src/components/NewComposition/ComboBox.tsx b/packages/studio/src/components/NewComposition/ComboBox.tsx
index 167ba02143..92d8f098ab 100644
--- a/packages/studio/src/components/NewComposition/ComboBox.tsx
+++ b/packages/studio/src/components/NewComposition/ComboBox.tsx
@@ -116,7 +116,6 @@ export const Combobox: React.FC<{
readonly title: string;
readonly size?: ComboboxSize;
readonly unhoveredIconColor?: string;
- readonly disabled?: boolean;
}> = ({
values,
selectedId,
@@ -124,7 +123,6 @@ export const Combobox: React.FC<{
title,
size: controlSize = 'default',
unhoveredIconColor = LIGHT_TEXT,
- disabled = false,
}) => {
const [hovered, setIsHovered] = useState(false);
const [opened, setOpened] = useState(false);
@@ -296,9 +294,8 @@ export const Combobox: React.FC<{
: hovered
? WHITE_ALPHA_05
: BLACK_ALPHA_60,
- opacity: disabled ? 0.5 : 1,
};
- }, [controlSize, customStyle, disabled, hovered, opened]);
+ }, [controlSize, customStyle, hovered, opened]);
const selectedLabelStyle =
controlSize === 'small'
@@ -312,7 +309,6 @@ export const Combobox: React.FC<{
<button
ref={ref}
title={title}
- disabled={disabled}
tabIndex={tabIndex}
type="button"
style={style}
diff --git a/packages/studio/src/components/Transcription/TranscriptionModal.tsx b/packages/studio/src/components/Transcription/TranscriptionModal.tsx
index 6473777bd9..9d8b7ac308 100644
--- a/packages/studio/src/components/Transcription/TranscriptionModal.tsx
+++ b/packages/studio/src/components/Transcription/TranscriptionModal.tsx
@@ -327,7 +327,6 @@ const ModelSettings: React.FC<{
values={modelOptions}
selectedId={selectedModel}
title="Whisper model"
- disabled={false}
style={controlStyle}
/>
</div>
@@ -340,7 +339,6 @@ const ModelSettings: React.FC<{
values={languageOptions}
selectedId={selectedLanguage}
title="Spoken language"
- disabled={false}
style={controlStyle}
/>
</div>
@@ -354,7 +352,6 @@ const ModelSettings: React.FC<{
values={taskOptions}
selectedId={effectiveTask}
title="Task"
- disabled={false}
style={controlStyle}
/>
</div>
diff --git a/packages/studio/src/components/VideoMatting/VideoMattingModal.tsx b/packages/studio/src/components/VideoMatting/VideoMattingModal.tsx
index d08b97c212..86333d2d21 100644
--- a/packages/studio/src/components/VideoMatting/VideoMattingModal.tsx
+++ b/packages/studio/src/components/VideoMatting/VideoMattingModal.tsx
@@ -356,7 +356,6 @@ export const VideoMattingModal: React.FC<VideoMattingModalState> = ({
values={modelOptions}
selectedId={model}
title="Model"
- disabled={false}
style={controlStyle}
/>
</div>
@@ -377,7 +376,6 @@ export const VideoMattingModal: React.FC<VideoMattingModalState> = ({
values={audioOptions}
selectedId={audio}
title="Audio"
- disabled={false}
style={controlStyle}
/>
</div>
@@ -389,7 +387,6 @@ export const VideoMattingModal: React.FC<VideoMattingModalState> = ({
values={qualityOptions}
selectedId={String(videoBitrate)}
title="Video quality"
- disabled={false}
style={controlStyle}
/>
</div>