mirror of
https://github.com/strapi/strapi.git
synced 2025-11-14 09:07:59 +00:00
28 lines
479 B
JavaScript
28 lines
479 B
JavaScript
|
|
/**
|
||
|
|
*
|
||
|
|
* TableRow
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
|
||
|
|
import PropTypes from 'prop-types';
|
||
|
|
|
||
|
|
import styles from './styles.scss';
|
||
|
|
|
||
|
|
class TableEmpty extends React.Component {
|
||
|
|
render() {
|
||
|
|
return (
|
||
|
|
<tr className={styles.tableEmpty}>
|
||
|
|
<td colSpan={this.props.colspan + 1}>There is no {this.props.contentType || 'entry'}...</td>
|
||
|
|
</tr>
|
||
|
|
);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
TableEmpty.propTypes = {
|
||
|
|
colspan: PropTypes.number.isRequired,
|
||
|
|
contentType: PropTypes.string.isRequired,
|
||
|
|
};
|
||
|
|
|
||
|
|
export default TableEmpty;
|