Spaces:
Runtime error
Runtime error
Update src/components/library-item/library-item.jsx
Browse files
src/components/library-item/library-item.jsx
CHANGED
|
@@ -303,6 +303,18 @@ class LibraryItemComponent extends React.PureComponent {
|
|
| 303 |
</div>
|
| 304 |
</div>
|
| 305 |
) : null}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 306 |
</div>
|
| 307 |
</div>
|
| 308 |
) : null}
|
|
@@ -392,11 +404,38 @@ class LibraryItemComponent extends React.PureComponent {
|
|
| 392 |
LibraryItemComponent.propTypes = {
|
| 393 |
intl: intlShape,
|
| 394 |
bluetoothRequired: PropTypes.bool,
|
| 395 |
-
collaborator: PropTypes.
|
| 396 |
-
|
| 397 |
-
|
| 398 |
-
|
| 399 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 400 |
description: PropTypes.oneOfType([
|
| 401 |
PropTypes.string,
|
| 402 |
PropTypes.node
|
|
@@ -444,4 +483,4 @@ LibraryItemComponent.defaultProps = {
|
|
| 444 |
showPlayButton: false
|
| 445 |
};
|
| 446 |
|
| 447 |
-
export default LibraryItemComponent;
|
|
|
|
| 303 |
</div>
|
| 304 |
</div>
|
| 305 |
) : null}
|
| 306 |
+
{this.props.extraLabels ? this.props.extraLabels.map((label) => (
|
| 307 |
+
<div className={styles.smallBottomMargin}>
|
| 308 |
+
<div>
|
| 309 |
+
{label.name}
|
| 310 |
+
</div>
|
| 311 |
+
<div
|
| 312 |
+
className={styles.featuredExtensionMetadataDetail}
|
| 313 |
+
>
|
| 314 |
+
{label.value}
|
| 315 |
+
</div>
|
| 316 |
+
</div>
|
| 317 |
+
)) : null}
|
| 318 |
</div>
|
| 319 |
</div>
|
| 320 |
) : null}
|
|
|
|
| 404 |
LibraryItemComponent.propTypes = {
|
| 405 |
intl: intlShape,
|
| 406 |
bluetoothRequired: PropTypes.bool,
|
| 407 |
+
collaborator: PropTypes.oneOfType([
|
| 408 |
+
PropTypes.string,
|
| 409 |
+
PropTypes.node
|
| 410 |
+
]),
|
| 411 |
+
credits: PropTypes.oneOfType([
|
| 412 |
+
PropTypes.string,
|
| 413 |
+
PropTypes.node
|
| 414 |
+
]),
|
| 415 |
+
twDeveloper: PropTypes.oneOfType([
|
| 416 |
+
PropTypes.string,
|
| 417 |
+
PropTypes.node
|
| 418 |
+
]),
|
| 419 |
+
extDeveloper: PropTypes.oneOfType([
|
| 420 |
+
PropTypes.string,
|
| 421 |
+
PropTypes.node
|
| 422 |
+
]),
|
| 423 |
+
eventSubmittor: PropTypes.oneOfType([
|
| 424 |
+
PropTypes.string,
|
| 425 |
+
PropTypes.node
|
| 426 |
+
]),
|
| 427 |
+
extraLabels: PropTypes.arrayOf(
|
| 428 |
+
PropTypes.shape({
|
| 429 |
+
name: PropTypes.oneOfType([
|
| 430 |
+
PropTypes.string,
|
| 431 |
+
PropTypes.node
|
| 432 |
+
]),
|
| 433 |
+
value: PropTypes.oneOfType([
|
| 434 |
+
PropTypes.string,
|
| 435 |
+
PropTypes.node
|
| 436 |
+
]),
|
| 437 |
+
})
|
| 438 |
+
),
|
| 439 |
description: PropTypes.oneOfType([
|
| 440 |
PropTypes.string,
|
| 441 |
PropTypes.node
|
|
|
|
| 483 |
showPlayButton: false
|
| 484 |
};
|
| 485 |
|
| 486 |
+
export default LibraryItemComponent;
|