mirror of
https://github.com/Radarr/Radarr.git
synced 2025-04-24 22:47:05 -04:00
44 lines
1,011 B
JavaScript
44 lines
1,011 B
JavaScript
import PropTypes from 'prop-types';
|
|
import React, { Component } from 'react';
|
|
import DescriptionListItemDescription from './DescriptionListItemDescription';
|
|
import DescriptionListItemTitle from './DescriptionListItemTitle';
|
|
|
|
class DescriptionListItem extends Component {
|
|
|
|
//
|
|
// Render
|
|
|
|
render() {
|
|
const {
|
|
titleClassName,
|
|
descriptionClassName,
|
|
title,
|
|
data
|
|
} = this.props;
|
|
|
|
return (
|
|
<div>
|
|
<DescriptionListItemTitle
|
|
className={titleClassName}
|
|
>
|
|
{title}
|
|
</DescriptionListItemTitle>
|
|
|
|
<DescriptionListItemDescription
|
|
className={descriptionClassName}
|
|
>
|
|
{data}
|
|
</DescriptionListItemDescription>
|
|
</div>
|
|
);
|
|
}
|
|
}
|
|
|
|
DescriptionListItem.propTypes = {
|
|
titleClassName: PropTypes.string,
|
|
descriptionClassName: PropTypes.string,
|
|
title: PropTypes.string,
|
|
data: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.node])
|
|
};
|
|
|
|
export default DescriptionListItem;
|