mirror of
https://github.com/umami-software/umami.git
synced 2026-02-06 13:47:15 +01:00
RealtimeLog component.
This commit is contained in:
parent
db9b238585
commit
b682e41aff
6 changed files with 163 additions and 123 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@
|
|||
}
|
||||
|
||||
.header {
|
||||
display: flex;
|
||||
border-bottom: 1px solid var(--gray300);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue