Fixed field parameters.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Button, Icon, Icons, Box, MenuTrigger, Popover, Text } from '@umami/react-zen';
|
||||
import { Button, Icon, Icons, MenuTrigger, Popover, Text } from '@umami/react-zen';
|
||||
import { FilterSelectForm } from '@/app/(main)/reports/[reportId]/FilterSelectForm';
|
||||
import { useFields, useMessages, useNavigation, useDateRange } from '@/components/hooks';
|
||||
import { OPERATOR_PREFIXES } from '@/lib/constants';
|
||||
@@ -34,21 +34,19 @@ export function WebsiteFilterButton({
|
||||
</Icon>
|
||||
{showText && <Text>{formatMessage(labels.filter)}</Text>}
|
||||
</Button>
|
||||
<Popover placement="bottom end">
|
||||
<Popover placement="bottom start">
|
||||
{({ close }: any) => {
|
||||
return (
|
||||
<Box padding="3" backgroundColor="1">
|
||||
<FilterSelectForm
|
||||
websiteId={websiteId}
|
||||
fields={fields}
|
||||
startDate={startDate}
|
||||
endDate={endDate}
|
||||
onChange={value => {
|
||||
handleAddFilter(value);
|
||||
close();
|
||||
}}
|
||||
/>
|
||||
</Box>
|
||||
<FilterSelectForm
|
||||
websiteId={websiteId}
|
||||
fields={fields}
|
||||
startDate={startDate}
|
||||
endDate={endDate}
|
||||
onChange={value => {
|
||||
handleAddFilter(value);
|
||||
close();
|
||||
}}
|
||||
/>
|
||||
);
|
||||
}}
|
||||
</Popover>
|
||||
|
||||
Reference in New Issue
Block a user