Skip to content

Commit

Permalink
Migrate blueprint MultiSelect2
Browse files Browse the repository at this point in the history
  • Loading branch information
yannikmesserli committed Jan 13, 2025
1 parent 7a7e38f commit 4c75c64
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/components/TopBar/FlowsFilterInput.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Button, Classes, MenuItem } from '@blueprintjs/core';
import { ItemRenderer, MultiSelect2 } from '@blueprintjs/select';
import { ItemRenderer, MultiSelect } from '@blueprintjs/select';
import { trim } from 'lodash';
import React, { useCallback, useState, memo } from 'react';
import classnames from 'classnames';
Expand All @@ -16,8 +16,6 @@ interface Props {
onChange?: (filters: FilterEntry[]) => void;
}

const FilterMultiSelect = MultiSelect2.ofType<FilterEntry | null>();

export const FlowsFilterInput = (props: Props) => {
const [userInput, setUserInput] = useState<string>('');

Expand Down Expand Up @@ -71,7 +69,7 @@ export const FlowsFilterInput = (props: Props) => {
) : undefined;

return (
<FilterMultiSelect
<MultiSelect
initialContent={null}
className={css.container}
query={userInput}
Expand Down

0 comments on commit 4c75c64

Please sign in to comment.