mirror of
https://github.com/umami-software/umami.git
synced 2026-02-23 22:15:35 +01:00
Updated events page.
This commit is contained in:
parent
3a97bfe11c
commit
c6b8114945
13 changed files with 122 additions and 46 deletions
|
|
@ -5,7 +5,6 @@ import { ReactNode } from 'react';
|
|||
|
||||
export default function EventsDataTable({
|
||||
websiteId,
|
||||
children,
|
||||
}: {
|
||||
websiteId?: string;
|
||||
teamId?: string;
|
||||
|
|
@ -13,12 +12,8 @@ export default function EventsDataTable({
|
|||
}) {
|
||||
const queryResult = useWebsiteEvents(websiteId);
|
||||
|
||||
if (queryResult?.result?.data?.length === 0) {
|
||||
return children;
|
||||
}
|
||||
|
||||
return (
|
||||
<DataTable queryResult={queryResult} allowSearch={false}>
|
||||
<DataTable queryResult={queryResult} allowSearch={true}>
|
||||
{({ data }) => <EventsTable data={data} />}
|
||||
</DataTable>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue