Skip to content

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
m-rgba committed Dec 23, 2024
1 parent fad7bc2 commit acb375b
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'},
Expand Down

0 comments on commit acb375b

Please sign in to comment.