Skip to content

Commit 992e4e6

Browse files
jebarjoneteddywashere
authored andcommitted
fix(Nav): update props available (#338)
1 parent 8d0f4ec commit 992e4e6

3 files changed

Lines changed: 11 additions & 18 deletions

File tree

docs/lib/Components/NavsPage.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { PrismCode } from 'react-prism';
44
import Helmet from 'react-helmet';
55
import NavsExample from '../examples/Navs';
66
const NavsExampleSource = require('!!raw!../examples/Navs');
7-
import NavInlineExample from '../examples/NavInline';
8-
const NavInlineExampleSource = require('!!raw!../examples/NavInline');
7+
import NavVerticalExample from '../examples/NavVertical';
8+
const NavVerticalExampleSource = require('!!raw!../examples/NavVertical');
99
import NavTabsExample from '../examples/NavTabs';
1010
const NavTabsExampleSource = require('!!raw!../examples/NavTabs');
1111
import NavPillsExample from '../examples/NavPills';
@@ -29,11 +29,9 @@ export default class NavssPage extends React.Component {
2929
<pre>
3030
<PrismCode className="language-jsx">
3131
{`Nav.propTypes = {
32-
inline: PropTypes.bool,
33-
disabled: PropTypes.bool,
3432
tabs: PropTypes.bool,
3533
pills: PropTypes.bool,
36-
stacked: PropTypes.bool,
34+
vertical: PropTypes.bool,
3735
navbar: PropTypes.bool,
3836
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string])
3937
// pass in custom element to use
@@ -74,13 +72,13 @@ export default class NavssPage extends React.Component {
7472
};`}
7573
</PrismCode>
7674
</pre>
77-
<h3>Inline</h3>
75+
<h3>Vertical</h3>
7876
<div className="docs-example">
79-
<NavInlineExample />
77+
<NavVerticalExample />
8078
</div>
8179
<pre>
8280
<PrismCode className="language-jsx">
83-
{NavInlineExampleSource}
81+
{NavVerticalExampleSource}
8482
</PrismCode>
8583
</pre>
8684
<h3>Tabs</h3>
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default class Example extends React.Component {
66
return (
77
<div>
88
<p>List Based</p>
9-
<Nav inline>
9+
<Nav vertical>
1010
<NavItem>
1111
<NavLink href="#">Link</NavLink>
1212
</NavItem>
@@ -22,7 +22,7 @@ export default class Example extends React.Component {
2222
</Nav>
2323
<hr />
2424
<p>Link based</p>
25-
<Nav inline>
25+
<Nav vertical>
2626
<NavLink href="#">Link</NavLink> <NavLink href="#">Link</NavLink> <NavLink href="#">Another Link</NavLink> <NavLink disabled href="#">Disabled Link</NavLink>
2727
</Nav>
2828
</div>

src/Nav.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ import classNames from 'classnames';
33
import { mapToCssModules } from './utils';
44

55
const propTypes = {
6-
inline: PropTypes.bool,
7-
disabled: PropTypes.bool,
86
tabs: PropTypes.bool,
97
pills: PropTypes.bool,
10-
stacked: PropTypes.bool,
8+
vertical: PropTypes.bool,
119
navbar: PropTypes.bool,
1210
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
1311
className: PropTypes.string,
@@ -24,8 +22,7 @@ const Nav = (props) => {
2422
cssModule,
2523
tabs,
2624
pills,
27-
inline,
28-
stacked,
25+
vertical,
2926
navbar,
3027
tag: Tag,
3128
...attributes
@@ -37,9 +34,7 @@ const Nav = (props) => {
3734
{
3835
'nav-tabs': tabs,
3936
'nav-pills': pills,
40-
'nav-inline': inline,
41-
'nav-stacked': stacked,
42-
disabled: attributes.disabled
37+
'flex-column': vertical
4338
}
4439
), cssModule);
4540

0 commit comments

Comments
 (0)