@@ -141,10 +141,7 @@ class LibraryItem extends React.PureComponent {
141141LibraryItem . propTypes = {
142142 bluetoothRequired : PropTypes . bool ,
143143 collaborator : PropTypes . string ,
144- description : PropTypes . oneOfType ( [
145- PropTypes . string ,
146- PropTypes . node
147- ] ) ,
144+ description : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . node ] ) ,
148145 disabled : PropTypes . bool ,
149146 extensionId : PropTypes . string ,
150147 featured : PropTypes . bool ,
@@ -154,21 +151,18 @@ LibraryItem.propTypes = {
154151 icons : PropTypes . arrayOf (
155152 PropTypes . shape ( {
156153 baseLayerMD5 : PropTypes . string , // 2.0 library format, TODO GH-5084
157- md5ext : PropTypes . string // 3.0 library format
154+ md5ext : PropTypes . string , // 3.0 library format
158155 } )
159156 ) ,
160- id : PropTypes . number . isRequired ,
157+ id : PropTypes . string . isRequired ,
161158 insetIconURL : PropTypes . string ,
162159 internetConnectionRequired : PropTypes . bool ,
163160 isPlaying : PropTypes . bool ,
164- name : PropTypes . oneOfType ( [
165- PropTypes . string ,
166- PropTypes . node
167- ] ) ,
161+ name : PropTypes . oneOfType ( [ PropTypes . string , PropTypes . node ] ) ,
168162 onMouseEnter : PropTypes . func . isRequired ,
169163 onMouseLeave : PropTypes . func . isRequired ,
170164 onSelect : PropTypes . func . isRequired ,
171- showPlayButton : PropTypes . bool
165+ showPlayButton : PropTypes . bool ,
172166} ;
173167
174168export default injectIntl ( LibraryItem ) ;
0 commit comments