Added "use client".
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
'use client';
|
||||
import { useApi, useDateRange } from 'components/hooks';
|
||||
import MetricCard from 'components/metrics/MetricCard';
|
||||
import { useMessages } from 'components/hooks';
|
||||
@@ -9,10 +10,10 @@ export function EventDataMetricsBar({ websiteId }: { websiteId: string }) {
|
||||
const { formatMessage, labels } = useMessages();
|
||||
const { get, useQuery } = useApi();
|
||||
const [dateRange] = useDateRange(websiteId);
|
||||
const { startDate, endDate, modified } = dateRange;
|
||||
const { startDate, endDate } = dateRange;
|
||||
|
||||
const { data, error, isLoading, isFetched } = useQuery({
|
||||
queryKey: ['event-data:stats', { websiteId, startDate, endDate, modified }],
|
||||
queryKey: ['event-data:stats', { websiteId, startDate, endDate }],
|
||||
queryFn: () =>
|
||||
get(`/event-data/stats`, {
|
||||
websiteId,
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
'use client';
|
||||
import Link from 'next/link';
|
||||
import { GridTable, GridColumn } from 'react-basics';
|
||||
import { useMessages, useNavigation } from 'components/hooks';
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
'use client';
|
||||
import { GridTable, GridColumn, Button, Icon, Text } from 'react-basics';
|
||||
import { useMessages, useNavigation } from 'components/hooks';
|
||||
import Link from 'next/link';
|
||||
|
||||
Reference in New Issue
Block a user