Skip to content

fix: add missing PropTypes to components#108

Open
zubeyralmaho wants to merge 2 commits intojotform:masterfrom
zubeyralmaho:fix/add-missing-proptypes
Open

fix: add missing PropTypes to components#108
zubeyralmaho wants to merge 2 commits intojotform:masterfrom
zubeyralmaho:fix/add-missing-proptypes

Conversation

@zubeyralmaho
Copy link

@zubeyralmaho zubeyralmaho commented Mar 6, 2026

What:

Adds missing PropTypes definitions to several components.

Why:

  • Improves code maintainability and type safety
  • Better IDE autocomplete and developer experience
  • Runtime prop validation in development mode
  • Follows React best practices

How:

Added PropTypes to:

  • PageItemResizer.js - Resizer component props
  • ResponsiveContent.js - Responsive wrapper props
  • Print/Print.js - Print component props

Checklist:

  • Documentation added to the docs site
  • Tests
  • Ready to be merged

- PageItemResizer: add PropTypes for item, onResize, onResizeStop
- ResponsiveContent: add PropTypes for children, height, width
- Print: add PropTypes for acceptedItems, pages, settings, theme
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.

1 participant