Skip to content

Commit a7526f3

Browse files
threehamseddywashere
authored andcommitted
style(propTypes): change all className propTypes to string (reactstrap#211)
1 parent 39900b5 commit a7526f3

67 files changed

Lines changed: 83 additions & 83 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/lib/Components/AlertsPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default class AlertsPage extends React.Component {
3030
<pre>
3131
<PrismCode className="language-jsx">
3232
{`Alert.propTypes = {
33-
className: PropTypes.any,
33+
className: PropTypes.string,
3434
color: PropTypes.string, // default: 'success'
3535
isOpen: PropTypes.bool, // default: true
3636
toggle: PropTypes.func,

docs/lib/Components/CardPage.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -53,51 +53,51 @@ export default class CardPage extends React.Component {
5353
inverse: PropTypes.bool,
5454
color: PropTypes.string,
5555
block: PropTypes.bool,
56-
className: PropTypes.any
56+
className: PropTypes.string
5757
};
5858
5959
CardBlock.propTypes = {
6060
// Pass in a Component to override default element
6161
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
62-
className: PropTypes.any
62+
className: PropTypes.string
6363
};
6464
6565
CardColumns.propTypes = {
6666
// Pass in a Component to override default element
6767
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
68-
className: PropTypes.any
68+
className: PropTypes.string
6969
};
7070
7171
CardDeck.propTypes = {
7272
// Pass in a Component to override default element
7373
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
74-
className: PropTypes.any,
74+
className: PropTypes.string,
7575
// enable flexbox version of component (removes extra classes)
7676
flex: PropTypes.bool
7777
};
7878
7979
CardFooter.propTypes = {
8080
// Pass in a Component to override default element
8181
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
82-
className: PropTypes.any
82+
className: PropTypes.string
8383
};
8484
8585
CardGroup.propTypes = {
8686
// Pass in a Component to override default element
8787
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
88-
className: PropTypes.any
88+
className: PropTypes.string
8989
};
9090
9191
CardHeader.propTypes = {
9292
// Pass in a Component to override default element
9393
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
94-
className: PropTypes.any
94+
className: PropTypes.string
9595
};
9696
9797
CardImg.propTypes = {
9898
// Pass in a Component to override default element
9999
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
100-
className: PropTypes.any,
100+
className: PropTypes.string,
101101
// Use top or bottom to position image via "card-img-top" or "card-img-bottom"
102102
top: PropTypes.bool,
103103
bottom: PropTypes.bool
@@ -106,31 +106,31 @@ CardImg.propTypes = {
106106
CardImgOverlay.propTypes = {
107107
// Pass in a Component to override default element
108108
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
109-
className: PropTypes.any
109+
className: PropTypes.string
110110
};
111111
112112
CardLink.propTypes = {
113113
// Pass in a Component to override default element
114114
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
115-
className: PropTypes.any
115+
className: PropTypes.string
116116
};
117117
118118
CardSubtitle.propTypes = {
119119
// Pass in a Component to override default element
120120
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
121-
className: PropTypes.any
121+
className: PropTypes.string
122122
};
123123
124124
CardText.propTypes = {
125125
// Pass in a Component to override default element
126126
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
127-
className: PropTypes.any
127+
className: PropTypes.string
128128
};
129129
130130
CardTitle.propTypes = {
131131
// Pass in a Component to override default element
132132
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
133-
className: PropTypes.any
133+
className: PropTypes.string
134134
};`}
135135
</PrismCode>
136136
</pre>

docs/lib/Components/DropdownsPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export default class DropdownPage extends React.Component {
6464
DropdownToggle.propTypes = {
6565
caret: PropTypes.bool,
6666
color: PropTypes.string,
67-
className: PropTypes.any,
67+
className: PropTypes.string,
6868
disabled: PropTypes.bool,
6969
onClick: PropTypes.func,
7070
'data-toggle': PropTypes.string,

docs/lib/Components/InputGroupPage.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,20 @@ export default class InputGroupPage extends React.Component {
4848
{`InputGroup.propTypes = {
4949
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
5050
size: PropTypes.string,
51-
className: PropTypes.any
51+
className: PropTypes.string
5252
};
5353
5454
InputGroupAddOn.propTypes = {
5555
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
56-
className: PropTypes.any
56+
className: PropTypes.string
5757
};
5858
5959
InputGroupButton.propTypes = {
6060
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
6161
children: PropTypes.node,
62-
groupClassName: PropTypes.any, // only used in shorthand
62+
groupClassName: PropTypes.string, // only used in shorthand
6363
groupAttributes: PropTypes.object, // only used in shorthand
64-
className: PropTypes.any
64+
className: PropTypes.string
6565
};`}
6666
</PrismCode>
6767
</pre>

docs/lib/Components/JumbotronPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default class JumbotronPage extends React.Component {
3030
// Pass in a Component to override default element
3131
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
3232
fluid: PropTypes.bool,
33-
className: PropTypes.any
33+
className: PropTypes.string
3434
};`}
3535
</PrismCode>
3636
</pre>

docs/lib/Components/ProgressPage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default class ProgressPage extends React.Component {
4444
animated: PropTypes.bool,
4545
stripped: PropTypes.bool,
4646
color: PropTypes.string,
47-
className: PropTypes.any
47+
className: PropTypes.string
4848
};
4949
5050
Progress.defaultProps = {

src/Alert.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const FirstChild = ({ children }) => (
99

1010
const propTypes = {
1111
children: PropTypes.node,
12-
className: PropTypes.any,
12+
className: PropTypes.string,
1313
cssModule: PropTypes.object,
1414
color: PropTypes.string,
1515
isOpen: PropTypes.bool,

src/Breadcrumb.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { mapToCssModules } from './utils';
44

55
const propTypes = {
66
tag: PropTypes.string,
7-
className: PropTypes.any,
7+
className: PropTypes.string,
88
cssModule: PropTypes.object,
99
};
1010

src/BreadcrumbItem.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { mapToCssModules } from './utils';
55
const propTypes = {
66
tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),
77
active: PropTypes.bool,
8-
className: PropTypes.any,
8+
className: PropTypes.string,
99
cssModule: PropTypes.object,
1010
};
1111

src/Button.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const propTypes = {
1212
onClick: PropTypes.func,
1313
size: PropTypes.string,
1414
children: PropTypes.node,
15-
className: PropTypes.any,
15+
className: PropTypes.string,
1616
cssModule: PropTypes.object,
1717
};
1818

0 commit comments

Comments
 (0)