From 4baf8b59e8be0dda5183e8a0cd73003a8bdc0ffc Mon Sep 17 00:00:00 2001 From: AlexKVal Date: Thu, 9 Apr 2015 18:40:51 +0300 Subject: [PATCH 1/3] Define type for `pullRight` property in Nav.js --- src/Nav.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Nav.js b/src/Nav.js index 4272ee1756..7828f06cb9 100644 --- a/src/Nav.js +++ b/src/Nav.js @@ -22,6 +22,7 @@ const Nav = React.createClass({ expanded: React.PropTypes.bool, navbar: React.PropTypes.bool, eventKey: React.PropTypes.any, + pullRight: React.PropTypes.bool, right: React.PropTypes.bool }, From 52cd9db4d360fc046bf60b8f47d9580d8377a9ac Mon Sep 17 00:00:00 2001 From: AlexKVal Date: Thu, 9 Apr 2015 18:51:05 +0300 Subject: [PATCH 2/3] Define type for `eventKey` property in SubNav.js --- src/SubNav.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/SubNav.js b/src/SubNav.js index 0b3673b886..e9487c1ada 100644 --- a/src/SubNav.js +++ b/src/SubNav.js @@ -14,6 +14,7 @@ const SubNav = React.createClass({ activeHref: React.PropTypes.string, activeKey: React.PropTypes.any, disabled: React.PropTypes.bool, + eventKey: React.PropTypes.any, href: React.PropTypes.string, title: React.PropTypes.string, text: React.PropTypes.node, From b05956346b093965721943f42875a0d3e655a7de Mon Sep 17 00:00:00 2001 From: AlexKVal Date: Thu, 9 Apr 2015 20:57:26 +0300 Subject: [PATCH 3/3] Define type for `accordion` property in PanelGroup.js and disable superfluous warning for `bsStyle`. BootstrapMixin contains type validation for it. --- src/PanelGroup.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/PanelGroup.js b/src/PanelGroup.js index 5f2cbd8f58..164e0c481b 100644 --- a/src/PanelGroup.js +++ b/src/PanelGroup.js @@ -1,3 +1,5 @@ +/* eslint react/prop-types: [1, {ignore: ["children", "className", "bsStyle"]}]*/ +/* BootstrapMixin contains `bsStyle` type validation */ import React, { cloneElement } from 'react'; import classNames from 'classnames'; @@ -9,6 +11,7 @@ const PanelGroup = React.createClass({ propTypes: { collapsable: React.PropTypes.bool, + accordion: React.PropTypes.bool, activeKey: React.PropTypes.any, defaultActiveKey: React.PropTypes.any, onSelect: React.PropTypes.func