2
0

🐛 (audioBubble) Remove .ogg upload option because of Safari incompatibility

This commit is contained in:
Baptiste Arnaud
2022-11-20 08:54:29 +01:00
parent c7fde1d0bc
commit e09adf5c64
2 changed files with 2 additions and 4 deletions

View File

@@ -44,9 +44,7 @@ export const UploadButton = ({
display="none" display="none"
onChange={handleInputChange} onChange={handleInputChange}
accept={ accept={
fileType === 'image' fileType === 'image' ? '.jpg, .jpeg, .png, .svg, .gif' : '.mp3, .wav'
? '.jpg, .jpeg, .png, .svg, .gif'
: '.mp3, .wav, .ogg'
} }
/> />
<Button <Button

View File

@@ -58,7 +58,7 @@ export const AudioBubbleForm = ({
onChange={submit} onChange={submit}
/> />
<Text fontSize="sm" color="gray.400" textAlign="center"> <Text fontSize="sm" color="gray.400" textAlign="center">
Works with .MP3s, .WAVs and .OGGs Works with .MP3s and .WAVs
</Text> </Text>
</> </>
)} )}