Skip to content

Commit

Permalink
Changing propType from string to node on components
Browse files Browse the repository at this point in the history
  • Loading branch information
pandaiolo committed Nov 5, 2015
1 parent 7df3a99 commit 98532fd
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
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 98532fd

Please sign in to comment.