reginaldalfret opened a new pull request, #696:
URL: https://github.com/apache/shenyu-dashboard/pull/696

   ### Summary
   
   Fix incorrect placement of PropTypes validators in `static defaultProps` 
instead of `static propTypes`.
   
   ### Problem
   
   `AddAndUpdateApiDoc` and `AddAndUpdateTag` components declare PropTypes 
validators (e.g., `PropTypes.object`, `PropTypes.bool`, `PropTypes.func`) 
inside `static defaultProps` instead of `static propTypes`. This means:
   - PropTypes validation never runs
   - Default values become truthy validator functions instead of actual defaults
   
   ### Root Cause
   
   The property name `defaultProps` was used where `propTypes` was intended.
   
   ### Fix
   
   Renamed `static defaultProps` to `static propTypes` in both affected 
components:
   - `src/routes/Document/components/AddAndUpdateApiDoc.js`
   - `src/routes/Document/components/AddAndUpdateTag.js`
   
   ### Testing
   
   - Verified lint passes
   - Verified existing tests pass
   - Verified build succeeds
   
   ### Issue
   
   Fixes #650


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to