2
0

🐛 Fix input background not properly set

This commit is contained in:
Baptiste Arnaud
2024-04-17 18:54:58 +02:00
parent 7e3e05fcb2
commit 94539e8ed3
5 changed files with 15 additions and 12 deletions

View File

@ -67,7 +67,7 @@ export const UploadButton = ({
id="file-input"
display="none"
onChange={handleInputChange}
accept={fileType === 'image' ? '.jpg, .jpeg, .png, .gif' : '.mp3, .wav'}
accept={fileType === 'image' ? 'image/*' : 'audio/*'}
/>
<Button
as="label"