Skip to content

Commit

Permalink
refactor(16054): replaces ReactNodeLike with ReactNode (#16483)
Browse files Browse the repository at this point in the history
  • Loading branch information
2nikhiltom authored May 17, 2024
1 parent 3c47c9b commit 782c9e0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/react/src/components/ComboBox/ComboBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import cx from 'classnames';
import { useCombobox, UseComboboxProps } from 'downshift';
import PropTypes, { ReactNodeLike } from 'prop-types';
import PropTypes from 'prop-types';
import React, {
useContext,
useEffect,
Expand Down Expand Up @@ -280,7 +280,7 @@ export interface ComboBoxProps<ItemType>
/**
* **Experimental**: Provide a `Slug` component to be rendered inside the `ComboBox` component
*/
slug?: ReactNodeLike;
slug?: ReactNode;

/**
* Provide text to be used in a `<label>` element that is tied to the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import Downshift, {
UseMultipleSelectionInterface,
} from 'downshift';
import isEqual from 'lodash.isequal';
import PropTypes, { ReactNodeLike } from 'prop-types';
import PropTypes from 'prop-types';
import React, {
useContext,
useState,
Expand Down Expand Up @@ -240,7 +240,7 @@ export interface FilterableMultiSelectProps<Item extends ItemBase>
/**
* **Experimental**: Provide a `Slug` component to be rendered inside the `Checkbox` component
*/
slug?: ReactNodeLike;
slug?: ReactNode;

/**
* Provide text to be used in a `<label>` element that is tied to the
Expand Down

0 comments on commit 782c9e0

Please sign in to comment.