RealtimeLog component.

This commit is contained in:
Mike Cao 2020-10-09 02:56:15 -07:00
parent db9b238585
commit b682e41aff
6 changed files with 163 additions and 123 deletions

View file

@ -3,13 +3,13 @@ import classNames from 'classnames';
import NoData from 'components/common/NoData';
import styles from './Table.module.css';
export default function Table({ columns, rows, empty }) {
export default function Table({ className, columns, rows, empty }) {
if (empty && rows.length === 0) {
return empty;
}
return (
<div className={styles.table}>
<div className={classNames(styles.table, className)}>
<div className={classNames(styles.header, 'row')}>
{columns.map(({ key, label, className, style, header }) => (
<div

View file

@ -4,6 +4,7 @@
}
.header {
display: flex;
border-bottom: 1px solid var(--gray300);
}