cleanup: silence our own React dev-console warnings

UNSAFE_ rename of our 4 componentWillReceiveProps (FireStats, Fires, FromNow,
SelectionMap) and Authenticated/Public component propType func -> elementType.
Rest of the console noise is legacy react-* dev-mode warnings, absent in prod.
This commit is contained in:
vjrj 2026-07-18 05:47:44 +02:00
parent 9feaca9d0b
commit a997aa7cae
6 changed files with 8 additions and 6 deletions

View file

@ -17,7 +17,9 @@ const Authenticated = ({ loggingIn, authenticated, component, path, exact, ...re
Authenticated.propTypes = {
loggingIn: PropTypes.bool.isRequired,
authenticated: PropTypes.bool.isRequired,
component: PropTypes.func.isRequired,
// elementType (not func): route components may be HOC-wrapped (translate(),
// memo, forwardRef), which are objects, not plain functions.
component: PropTypes.elementType.isRequired,
};
export default Authenticated;