From acb375bd08e671518a813811dc537f8a9c2ab8e9 Mon Sep 17 00:00:00 2001 From: Martin Mark Date: Mon, 23 Dec 2024 12:26:04 -0500 Subject: [PATCH] Lint fix --- .../Home/Browse3/filters/FilterRow.tsx | 7 ++++++- .../Home/Browse3/filters/SelectOperator.tsx | 2 +- .../PagePanelComponents/Home/Browse3/filters/common.ts | 10 ++++++---- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/weave-js/src/components/PagePanelComponents/Home/Browse3/filters/FilterRow.tsx b/weave-js/src/components/PagePanelComponents/Home/Browse3/filters/FilterRow.tsx index 5a20a8ede48..8d806d2d2ff 100644 --- a/weave-js/src/components/PagePanelComponents/Home/Browse3/filters/FilterRow.tsx +++ b/weave-js/src/components/PagePanelComponents/Home/Browse3/filters/FilterRow.tsx @@ -6,7 +6,12 @@ import {GridFilterItem} from '@mui/x-data-grid-pro'; import React, {useMemo} from 'react'; import {Button} from '../../../../Button'; -import {FilterId, getFieldType, getGroupedOperatorOptions, isWeaveRef} from './common'; +import { + FilterId, + getFieldType, + getGroupedOperatorOptions, + isWeaveRef, +} from './common'; import {SelectField, SelectFieldOption} from './SelectField'; import {SelectOperator} from './SelectOperator'; import {SelectValue} from './SelectValue'; diff --git a/weave-js/src/components/PagePanelComponents/Home/Browse3/filters/SelectOperator.tsx b/weave-js/src/components/PagePanelComponents/Home/Browse3/filters/SelectOperator.tsx index 8e26758252c..24b0655d692 100644 --- a/weave-js/src/components/PagePanelComponents/Home/Browse3/filters/SelectOperator.tsx +++ b/weave-js/src/components/PagePanelComponents/Home/Browse3/filters/SelectOperator.tsx @@ -3,10 +3,10 @@ */ import {Select} from '@wandb/weave/components/Form/Select'; import React from 'react'; +import {components, GroupHeadingProps} from 'react-select'; import {Tooltip} from '../../../../Tooltip'; import {OperatorGroupedOption, SelectOperatorOption} from './common'; -import {components, GroupHeadingProps} from 'react-select'; type SelectOperatorProps = { options: OperatorGroupedOption[]; diff --git a/weave-js/src/components/PagePanelComponents/Home/Browse3/filters/common.ts b/weave-js/src/components/PagePanelComponents/Home/Browse3/filters/common.ts index 328f6a0d0d9..11b7a3b536b 100644 --- a/weave-js/src/components/PagePanelComponents/Home/Browse3/filters/common.ts +++ b/weave-js/src/components/PagePanelComponents/Home/Browse3/filters/common.ts @@ -307,11 +307,13 @@ export type OperatorGroupedOption = { options: SelectOperatorOption[]; }; -/** - * Return grouped operators by type (string, number, bool, etc.). - * Customize the group labels & operators as needed. +/** + * Return grouped operators by type (string, number, bool, etc.). + * Customize the group labels & operators as needed. */ -export function getGroupedOperatorOptions(field: string): OperatorGroupedOption[] { +export function getGroupedOperatorOptions( + field: string +): OperatorGroupedOption[] { const stringOperators: SelectOperatorOption[] = [ {value: '(string): contains', label: 'contains'}, {value: '(string): equals', label: 'equals'},