fix: return Item in renderItemFactory
This commit is contained in:
@@ -57,9 +57,7 @@ Item.propTypes = {
|
|||||||
|
|
||||||
const renderItemFactory =
|
const renderItemFactory =
|
||||||
({ onOptionClick }) =>
|
({ onOptionClick }) =>
|
||||||
(props) => {
|
(props) => <Item onOptionClick={onOptionClick} {...props} />;
|
||||||
<Item onOptionClick={onOptionClick} {...props} />;
|
|
||||||
};
|
|
||||||
|
|
||||||
const Options = (props) => {
|
const Options = (props) => {
|
||||||
const formatMessage = useFormatMessage();
|
const formatMessage = useFormatMessage();
|
||||||
|
Reference in New Issue
Block a user