mirror of
https://github.com/umami-software/umami.git
synced 2026-02-05 21:27:20 +01:00
Website transfer.
This commit is contained in:
parent
b6a900c5a4
commit
d99fb09c37
9 changed files with 249 additions and 16 deletions
|
|
@ -5,7 +5,7 @@ import { useMessages } from 'components/hooks';
|
|||
import Empty from 'components/common/Empty';
|
||||
import Pager from 'components/common/Pager';
|
||||
import styles from './DataTable.module.css';
|
||||
import { FilterQueryResult } from 'components/hooks';
|
||||
import { FilterQueryResult } from 'lib/types';
|
||||
|
||||
const DEFAULT_SEARCH_DELAY = 600;
|
||||
|
||||
|
|
@ -64,7 +64,7 @@ export function DataTable({
|
|||
className={classNames(styles.body, { [styles.status]: isLoading || noResults || !hasData })}
|
||||
>
|
||||
{hasData ? (typeof children === 'function' ? children(result) : children) : null}
|
||||
{isLoading && <Loading icon="dots" />}
|
||||
{isLoading && <Loading position="page" />}
|
||||
{!isLoading && !hasData && !query && <Empty />}
|
||||
{noResults && <Empty message={formatMessage(messages.noResultsFound)} />}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue