wwf
3 天以前 a430284aa21e3ae1f0d5654e55b2ad2852519cc2
app/components/base/image-uploader/uploader.tsx
@@ -5,7 +5,7 @@
import { ALLOW_FILE_EXTENSIONS } from '@/types/app'
type UploaderProps = {
  children: (hovering: boolean) => React.JSX.Element
  children: (hovering: boolean) => JSX.Element
  onUpload: (imageFile: ImageFile) => void
  closePopover?: () => void
  limit?: number
@@ -44,7 +44,7 @@
    >
      {children(hovering)}
      <input
        className='absolute inset-0 block w-full cursor-pointer text-[0] opacity-0 disabled:cursor-not-allowed'
        className='absolute block inset-0 opacity-0 text-[0] w-full disabled:cursor-not-allowed cursor-pointer'
        onClick={e => ((e.target as HTMLInputElement).value = '')}
        type='file'
        accept={ALLOW_FILE_EXTENSIONS.map(ext => `.${ext}`).join(',')}