mirror of
https://github.com/umami-software/umami.git
synced 2026-02-09 07:07:17 +01:00
Empty placeholder component. CSS fixes.
This commit is contained in:
parent
cd76cc895f
commit
e309376150
8 changed files with 85 additions and 19 deletions
|
|
@ -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}>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue