Replace loading text with icon

This commit is contained in:
Bas Broekhuizen 2025-07-09 09:10:02 +02:00
parent 0c78e31300
commit 23120ec011

View file

@ -1,5 +1,5 @@
import { useMemo } from 'react';
import { GridColumn, GridTable, Flexbox, Button, ButtonGroup } from 'react-basics';
import { GridColumn, GridTable, Flexbox, Button, ButtonGroup, Loading } from 'react-basics';
import { useEventDataProperties, useEventDataValues, useMessages } from '@/components/hooks';
import { LoadingPanel } from '@/components/common/LoadingPanel';
import PieChart from '@/components/charts/PieChart';
@ -82,8 +82,8 @@ export function EventProperties({ websiteId }: { websiteId: string }) {
</ButtonGroup>
</Flexbox>
{values?.length === 0 ? (
<div>{formatMessage(labels.noData)}</div>
{!values ? (
<Loading icon="dots" />
) : propertyView === 'table' ? (
<ListTable data={tableData} />
) : (