Empty placeholder component. CSS fixes.

This commit is contained in:
Mike Cao 2020-08-10 19:54:03 -07:00
parent cd76cc895f
commit e309376150
8 changed files with 85 additions and 19 deletions

View file

@ -2,7 +2,11 @@ import React from 'react';
import classNames from 'classnames';
import styles from './Table.module.css';
export default function Table({ columns, rows }) {
export default function Table({ columns, rows, empty }) {
if (empty && rows.length === 0) {
return empty;
}
return (
<div className={styles.table}>
<div className={styles.header}>