Fix propTypes declaration
With this version of babel (via babel-eslint), eslint now fails with a somewhat confusing, "Unexpected reserved type number" (from the flow plugin...) if you get this wrong.
This commit is contained in:
@@ -90,7 +90,7 @@ function isInLowerLeftHalf(x, y, rect) {
|
||||
* tooltip along one edge of the target.
|
||||
*/
|
||||
export default class InteractiveTooltip extends React.Component {
|
||||
propTypes: {
|
||||
static propTypes = {
|
||||
// Content to show in the tooltip
|
||||
content: PropTypes.node.isRequired,
|
||||
// Function to call when visibility of the tooltip changes
|
||||
|
||||
Reference in New Issue
Block a user