Skip to content

Commit

Permalink
[CPT-1478] Address review
Browse files Browse the repository at this point in the history
  • Loading branch information
angelinastavniiciuc authored and rasitozcan committed Jan 4, 2024
1 parent 4f41aef commit dc35eb9
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 10 deletions.
6 changes: 0 additions & 6 deletions .changeset/great-pens-do.md

This file was deleted.

6 changes: 6 additions & 0 deletions .changeset/rare-jokes-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@toptal/picasso-query-builder': minor
'@toptal/picasso': minor
---

- add `enableResetSearch` prop to `Select` component and provide it to `QueryBuilder` `Multiselect` field
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import styles from './styles'
type Props = BaseVersatileSelectorProps &
ValueEditorValidationProps & {
valueEditorTestId?: string
enableResetSearch?: boolean
}

const useStyles = makeStyles(styles)
Expand All @@ -28,7 +27,6 @@ export const MultiSelect = ({
className,
fieldData,
valueEditorTestId,
enableResetSearch,
}: Props) => {
const classes = useStyles()

Expand Down Expand Up @@ -59,7 +57,7 @@ export const MultiSelect = ({
value={values}
status={hasError ? 'error' : undefined}
data-testid={valueEditorTestId}
enableResetSearch={enableResetSearch}
enableResetSearch={fieldData?.enableResetSearch}
/>
</Container>
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ export const ValueEditor = ({
touched={touched}
fieldData={fieldData}
valueEditorTestId={valueEditorTestId}
enableResetSearch={fieldData.enableResetSearch}
/>
)
case 'select':
Expand Down

0 comments on commit dc35eb9

Please sign in to comment.