Skip to content

Commit 94bbb82

Browse files
authored
fix(PropTypes): clean up prop-types usage (#427)
1 parent 2ff73fa commit 94bbb82

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

docs/lib/Components/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from 'react';
2+
import PropTypes from 'prop-types';
23
import { Link } from 'react-router';
34
import { Container, Row, Col, Nav, NavItem, NavLink } from 'reactstrap';
45

@@ -12,7 +13,7 @@ const ComponentLink = (props) => {
1213
);
1314
};
1415
const propTypes = {
15-
children: React.PropTypes.node
16+
children: PropTypes.node
1617
};
1718

1819
class Components extends React.Component {

docs/lib/Utilities/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import React from 'react';
22
import { Link } from 'react-router';
3+
import PropTypes from 'prop-types';
34
import { Container, Row, Col, Nav, NavItem, NavLink } from 'reactstrap';
45

56
const ComponentLink = (props) => {
@@ -12,7 +13,7 @@ const ComponentLink = (props) => {
1213
);
1314
};
1415
const propTypes = {
15-
children: React.PropTypes.node
16+
children: PropTypes.node
1617
};
1718

1819
class Utilities extends React.Component {

src/Popover.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import TetherContent from './TetherContent';
66
import { getTetherAttachments, mapToCssModules, tetherAttachements } from './utils';
77

88
const propTypes = {
9-
placement: React.PropTypes.oneOf(tetherAttachements),
9+
placement: PropTypes.oneOf(tetherAttachements),
1010
target: PropTypes.string.isRequired,
1111
isOpen: PropTypes.bool,
1212
tether: PropTypes.object,

src/Tooltip.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import TetherContent from './TetherContent';
66
import { getTetherAttachments, tetherAttachements, mapToCssModules } from './utils';
77

88
const propTypes = {
9-
placement: React.PropTypes.oneOf(tetherAttachements),
9+
placement: PropTypes.oneOf(tetherAttachements),
1010
target: PropTypes.oneOfType([
1111
PropTypes.string,
1212
PropTypes.object

0 commit comments

Comments
 (0)