From d848bb65c7e318478b1920feb966d733056ccad5 Mon Sep 17 00:00:00 2001 From: Michael Schinis Date: Mon, 21 Aug 2017 09:37:27 +0100 Subject: [PATCH] fix(List): adds support for any type of renderable element (#266) --- packages/react-instantsearch/src/components/List.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-instantsearch/src/components/List.js b/packages/react-instantsearch/src/components/List.js index a8c9c72b09..d3ea98b97a 100644 --- a/packages/react-instantsearch/src/components/List.js +++ b/packages/react-instantsearch/src/components/List.js @@ -5,7 +5,7 @@ import SearchBox from '../components/SearchBox'; const itemsPropType = PropTypes.arrayOf( PropTypes.shape({ value: PropTypes.any, - label: PropTypes.string.isRequired, + label: PropTypes.node.isRequired, items: (...args) => itemsPropType(...args), }) );