mirror of
https://github.com/Lidarr/Lidarr
synced 2025-12-16 13:22:57 +01:00
37 lines
636 B
JavaScript
37 lines
636 B
JavaScript
import PropTypes from 'prop-types';
|
|
import React, { Component } from 'react';
|
|
import styles from './TableRowCell.css';
|
|
|
|
class TableRowCell extends Component {
|
|
|
|
//
|
|
// Render
|
|
|
|
render() {
|
|
const {
|
|
className,
|
|
children,
|
|
...otherProps
|
|
} = this.props;
|
|
|
|
return (
|
|
<td
|
|
className={className}
|
|
{...otherProps}
|
|
>
|
|
{children}
|
|
</td>
|
|
);
|
|
}
|
|
}
|
|
|
|
TableRowCell.propTypes = {
|
|
className: PropTypes.string.isRequired,
|
|
children: PropTypes.oneOfType([PropTypes.string, PropTypes.node])
|
|
};
|
|
|
|
TableRowCell.defaultProps = {
|
|
className: styles.cell
|
|
};
|
|
|
|
export default TableRowCell;
|