Skip to content

Commit

Permalink
Merge pull request mui#2063 from pandaiolo/node-props
Browse files Browse the repository at this point in the history
Changing propType from string to node on components
  • Loading branch information
oliviertassinari committed Nov 5, 2015
2 parents 7df3a99 + 2b1e062 commit 47bf496
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion docs/src/app/components/pages/components/grid-list.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ class GridListPage extends React.Component {
infoArray: [
{
name: 'title',
type: 'string',
type: 'node',
header: 'optional',
desc: 'Title to be displayed on tile.',
},
Expand Down
2 changes: 1 addition & 1 deletion docs/src/app/components/pages/components/lists.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default class ListsPage extends React.Component {
},
{
name: 'subheader',
type: 'string',
type: 'node',
header: 'optional',
desc: 'The subheader string that will be displayed at the top of the list.',
},
Expand Down
6 changes: 3 additions & 3 deletions docs/src/app/components/pages/components/switches.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default class SwitchesPage extends React.Component {
},
{
name: 'label',
type: 'string',
type: 'node',
header: 'optional',
desc: 'The text that is displayed beside the checkbox.',
},
Expand Down Expand Up @@ -130,7 +130,7 @@ export default class SwitchesPage extends React.Component {
},
{
name: 'label',
type: 'string',
type: 'node',
header: 'optional',
desc: 'The text that is displayed beside the radio button.',
},
Expand Down Expand Up @@ -252,7 +252,7 @@ export default class SwitchesPage extends React.Component {
},
{
name: 'label',
type: 'string',
type: 'node',
header: 'optional',
desc: 'The text that is displayed beside the toggle switch.',
},
Expand Down
4 changes: 2 additions & 2 deletions src/card/card-title.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ const CardTitle = React.createClass({
},

propTypes: {
title: React.PropTypes.string,
title: React.PropTypes.node,
titleColor: React.PropTypes.string,
titleStyle: React.PropTypes.object,
subtitle: React.PropTypes.string,
subtitle: React.PropTypes.node,
subtitleColor: React.PropTypes.string,
subtitleStyle: React.PropTypes.object,
expandable: React.PropTypes.bool,
Expand Down
2 changes: 1 addition & 1 deletion src/enhanced-switch.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const EnhancedSwitch = React.createClass({
labelStyle: React.PropTypes.object,
name: React.PropTypes.string,
value: React.PropTypes.string,
label: React.PropTypes.string,
label: React.PropTypes.node,
onSwitch: React.PropTypes.func,
required: React.PropTypes.bool,
disabled: React.PropTypes.bool,
Expand Down
2 changes: 1 addition & 1 deletion src/grid-list/grid-tile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const GridTile = React.createClass({
},

propTypes: {
title: React.PropTypes.string,
title: React.PropTypes.node,
subtitle: React.PropTypes.node,
titlePosition: React.PropTypes.oneOf(['top', 'bottom']),
titleBackground: React.PropTypes.string,
Expand Down
2 changes: 1 addition & 1 deletion src/lists/list.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const List = React.createClass({

propTypes: {
insetSubheader: React.PropTypes.bool,
subheader: React.PropTypes.string,
subheader: React.PropTypes.node,
subheaderStyle: React.PropTypes.object,
zDepth: PropTypes.zDepth,
},
Expand Down

0 comments on commit 47bf496

Please sign in to comment.