From bc5e17ab069890f1c98cf593bc9caa2ac7417a10 Mon Sep 17 00:00:00 2001 From: Jerel Miller Date: Sun, 7 Jun 2020 02:26:39 -0700 Subject: [PATCH] feat: Render union types prop info --- src/components/PropTypeInfo.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/PropTypeInfo.js b/src/components/PropTypeInfo.js index c6daeae93..c42f990db 100644 --- a/src/components/PropTypeInfo.js +++ b/src/components/PropTypeInfo.js @@ -24,6 +24,10 @@ const PropTypeInfo = ({ type }) => {
{'>'}
); + case 'oneOfType': + return type.meta.types.map((type, idx) => ( + + )); default: return null; }