burczu / react-router-role-authorization

Role-based authorization components for React and React-Router
145 stars 25 forks source link

Update to support React 15.5+ #15

Open ottoo opened 7 years ago

ottoo commented 7 years ago

Current version of 1.1.3 doesn't support React greater than 15.5 that don't ship with proptypes.

index.js?36bf:206 Uncaught TypeError: Cannot read property 'array' of undefined

from dist.js line 216

return AuthorizedComponent;
      }(_react2.default.Component), _class.propTypes = {
        routes: _react.PropTypes.array.isRequired
      }
ottoo commented 7 years ago

https://github.com/burczu/react-router-role-authorization/pull/16