mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
Fix build.
This commit is contained in:
parent
f7ca583410
commit
00adb00d2d
3 changed files with 16 additions and 5 deletions
|
|
@ -24,7 +24,13 @@ export function LinkControls({
|
|||
<Column gap>
|
||||
<Row alignItems="center" justifyContent="space-between" gap="3">
|
||||
{allowFilter ? <WebsiteFilterButton websiteId={websiteId} /> : <div />}
|
||||
{allowDateFilter && <WebsiteDateFilter websiteId={websiteId} allowCompare={allowCompare} />}
|
||||
{allowDateFilter && (
|
||||
<WebsiteDateFilter
|
||||
websiteId={websiteId}
|
||||
allowCompare={allowCompare}
|
||||
showAllTime={false}
|
||||
/>
|
||||
)}
|
||||
{allowDownload && <ExportButton websiteId={websiteId} />}
|
||||
{allowMonthFilter && <WebsiteMonthSelect websiteId={websiteId} />}
|
||||
</Row>
|
||||
|
|
|
|||
|
|
@ -24,7 +24,13 @@ export function PixelControls({
|
|||
<Column gap>
|
||||
<Row alignItems="center" justifyContent="space-between" gap="3">
|
||||
{allowFilter ? <WebsiteFilterButton websiteId={websiteId} /> : <div />}
|
||||
{allowDateFilter && <WebsiteDateFilter websiteId={websiteId} allowCompare={allowCompare} />}
|
||||
{allowDateFilter && (
|
||||
<WebsiteDateFilter
|
||||
websiteId={websiteId}
|
||||
allowCompare={allowCompare}
|
||||
showAllTime={false}
|
||||
/>
|
||||
)}
|
||||
{allowDownload && <ExportButton websiteId={websiteId} />}
|
||||
{allowMonthFilter && <WebsiteMonthSelect websiteId={websiteId} />}
|
||||
</Row>
|
||||
|
|
|
|||
|
|
@ -5,11 +5,10 @@ import { useCountryNames, useLocale, useMessages, useTimezone } from '@/componen
|
|||
import { Eye, Visitor, Bolt } from '@/components/icons';
|
||||
import { BROWSERS, OS_NAMES } from '@/lib/constants';
|
||||
import { stringToColor } from '@/lib/format';
|
||||
import { RealtimeData } from '@/lib/types';
|
||||
import { useContext, useMemo, useState } from 'react';
|
||||
import { Icon, SearchField, StatusLight, Text } from '@umami/react-zen';
|
||||
import { FixedSizeList } from 'react-window';
|
||||
import { WebsiteContext } from '../WebsiteProvider';
|
||||
import { WebsiteContext } from '@/app/(main)/websites/WebsiteProvider';
|
||||
import styles from './RealtimeLog.module.css';
|
||||
|
||||
const TYPE_ALL = 'all';
|
||||
|
|
@ -23,7 +22,7 @@ const icons = {
|
|||
[TYPE_EVENT]: <Bolt />,
|
||||
};
|
||||
|
||||
export function RealtimeLog({ data }: { data: RealtimeData }) {
|
||||
export function RealtimeLog({ data }: { data: any }) {
|
||||
const website = useContext(WebsiteContext);
|
||||
const [search, setSearch] = useState('');
|
||||
const { formatMessage, labels, messages } = useMessages();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue