Skip to content

refactor(frontend): drop React.FC, type props inline - #3981

Merged
Kadrian merged 4 commits into
developfrom
refactor/drop-fc
Aug 27, 2026
Merged

refactor(frontend): drop React.FC, type props inline#3981
Kadrian merged 4 commits into
developfrom
refactor/drop-fc

Conversation

@Kadrian

@Kadrian Kadrian commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator
  • FC is legacy: no implicit children since react 18, nothing else it adds
  • props typed on the destructured arg; local single-use Props interfaces inlined, reused/exported ones kept (CSVColumnPicker)
  • stale /* <FC<DropzoneProps<…>>> */ comments removed

Pure type-level change, no runtime diff. biome, tsc, vitest, build green.

FC is legacy (implicit children gone since react 18); inline single-use props types to match the prevailing style
react 19 passes ref as a regular prop; forwardRef is deprecated. Generic dropzones no longer need the 'as <T>(...)' cast
@Kadrian
Kadrian merged commit 56d7c3c into develop Aug 27, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants