From 68f194451f907a9ffce2c428646efee8af26adc7 Mon Sep 17 00:00:00 2001 From: Jerel Miller Date: Mon, 8 Jun 2020 09:01:45 -0700 Subject: [PATCH] feat: Implement arrayOf for prop list --- src/components/PropList.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/components/PropList.js b/src/components/PropList.js index f939c007f..8a0ad1b12 100644 --- a/src/components/PropList.js +++ b/src/components/PropList.js @@ -15,6 +15,19 @@ const PropTypeInfo = ({ type }) => { params={type.meta.params} /> ); + case 'arrayOf': { + const { itemTypes } = type.meta; + + return itemTypes.raw === 'oneOf' ? ( +
+
{' +
+ +
+
{'>'}
+
+ ) : null; + } case 'oneOf': return (