Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate React layout components to Flow component syntax #3230

Merged
merged 2 commits into from May 17, 2024

Conversation

reosarevok
Copy link
Member

Flow now supports a specific React Component Syntax which reduces the amount of types we need to define manually, and is supposed to be better for type checking as well. I'm converting our React components to this syntax bit by bit with this PR.

This changes all stuff in the layout subfolder.

Note: To be reviewed without whitespace changes (since this adds explicit return() calls that require spacing things one more tab in many cases).

On top of #3228

@reosarevok reosarevok force-pushed the flow-component-syntax-layout branch from 4001d7a to 066edb0 Compare May 17, 2024 11:46
@reosarevok reosarevok marked this pull request as ready for review May 17, 2024 11:46
@reosarevok reosarevok merged commit ce2dfe0 into metabrainz:master May 17, 2024
2 checks passed
@reosarevok reosarevok deleted the flow-component-syntax-layout branch May 17, 2024 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Refactoring Refactoring-only PRs (eslint fixes etc)
Projects
None yet
2 participants