Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

max 1 subtitle file (#5244)

authored by

Samuel Newman and committed by
GitHub
0f6be244 436e30fd

+5 -1
+5 -1
src/view/com/composer/videos/SubtitleDialog.tsx
··· 20 20 import {Text} from '#/components/Typography' 21 21 import {SubtitleFilePicker} from './SubtitleFilePicker' 22 22 23 + const MAX_NUM_CAPTIONS = 1 24 + 23 25 interface Props { 24 26 defaultAltText: string 25 27 captions: {lang: string; file: File}[] ··· 134 136 </Text> 135 137 <SubtitleFilePicker 136 138 onSelectFile={handleSelectFile} 137 - disabled={subtitleMissingLanguage || captions.length >= 4} 139 + disabled={ 140 + subtitleMissingLanguage || captions.length >= MAX_NUM_CAPTIONS 141 + } 138 142 /> 139 143 <View> 140 144 {captions.map((subtitle, i) => (