fix: upload image (#1522)
This commit is contained in:
parent
d9336d9ae4
commit
cfbfd59b8f
7 changed files with 40 additions and 7 deletions
|
|
@ -88,6 +88,7 @@ const Uploader: FC<UploaderProps> = ({
|
|||
absolute block inset-0 opacity-0 text-[0]
|
||||
${disabled ? 'cursor-not-allowed' : 'cursor-pointer'}
|
||||
`}
|
||||
onClick={e => (e.target as HTMLInputElement).value = ''}
|
||||
type='file'
|
||||
accept='.png, .jpg, .jpeg, .webp, .gif'
|
||||
onChange={handleChange}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue