Skip to content

Commit 47bf496

Browse files
Merge pull request #2063 from pandaiolo/node-props
Changing propType from string to node on components
2 parents 7df3a99 + 2b1e062 commit 47bf496

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

docs/src/app/components/pages/components/grid-list.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class GridListPage extends React.Component {
5050
infoArray: [
5151
{
5252
name: 'title',
53-
type: 'string',
53+
type: 'node',
5454
header: 'optional',
5555
desc: 'Title to be displayed on tile.',
5656
},

docs/src/app/components/pages/components/lists.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default class ListsPage extends React.Component {
5555
},
5656
{
5757
name: 'subheader',
58-
type: 'string',
58+
type: 'node',
5959
header: 'optional',
6060
desc: 'The subheader string that will be displayed at the top of the list.',
6161
},

docs/src/app/components/pages/components/switches.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default class SwitchesPage extends React.Component {
5555
},
5656
{
5757
name: 'label',
58-
type: 'string',
58+
type: 'node',
5959
header: 'optional',
6060
desc: 'The text that is displayed beside the checkbox.',
6161
},
@@ -130,7 +130,7 @@ export default class SwitchesPage extends React.Component {
130130
},
131131
{
132132
name: 'label',
133-
type: 'string',
133+
type: 'node',
134134
header: 'optional',
135135
desc: 'The text that is displayed beside the radio button.',
136136
},
@@ -252,7 +252,7 @@ export default class SwitchesPage extends React.Component {
252252
},
253253
{
254254
name: 'label',
255-
type: 'string',
255+
type: 'node',
256256
header: 'optional',
257257
desc: 'The text that is displayed beside the toggle switch.',
258258
},

src/card/card-title.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ const CardTitle = React.createClass({
3838
},
3939

4040
propTypes: {
41-
title: React.PropTypes.string,
41+
title: React.PropTypes.node,
4242
titleColor: React.PropTypes.string,
4343
titleStyle: React.PropTypes.object,
44-
subtitle: React.PropTypes.string,
44+
subtitle: React.PropTypes.node,
4545
subtitleColor: React.PropTypes.string,
4646
subtitleStyle: React.PropTypes.object,
4747
expandable: React.PropTypes.bool,

src/enhanced-switch.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const EnhancedSwitch = React.createClass({
4545
labelStyle: React.PropTypes.object,
4646
name: React.PropTypes.string,
4747
value: React.PropTypes.string,
48-
label: React.PropTypes.string,
48+
label: React.PropTypes.node,
4949
onSwitch: React.PropTypes.func,
5050
required: React.PropTypes.bool,
5151
disabled: React.PropTypes.bool,

src/grid-list/grid-tile.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const GridTile = React.createClass({
1313
},
1414

1515
propTypes: {
16-
title: React.PropTypes.string,
16+
title: React.PropTypes.node,
1717
subtitle: React.PropTypes.node,
1818
titlePosition: React.PropTypes.oneOf(['top', 'bottom']),
1919
titleBackground: React.PropTypes.string,

src/lists/list.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const List = React.createClass({
1717

1818
propTypes: {
1919
insetSubheader: React.PropTypes.bool,
20-
subheader: React.PropTypes.string,
20+
subheader: React.PropTypes.node,
2121
subheaderStyle: React.PropTypes.object,
2222
zDepth: PropTypes.zDepth,
2323
},

0 commit comments

Comments
 (0)