You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: move hooks before early return and add explicit types in FileField.tsx
- Move useCallback hooks (processFiles, handleDragOver, handleDragLeave,
handleDrop) before the `if (readonly)` early return to fix
react-hooks/rules-of-hooks lint errors
- Add explicit `string` type annotations for parameter `t` in .map()
and .some() calls to fix TS7006 implicit any errors
- Rename `files` to `readonlyFiles` in readonly block to avoid variable
shadowing with the already-declared `files` variable
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
0 commit comments