From fb070bc12eb1ad1f4260fd30b4e22887d0f2cab7 Mon Sep 17 00:00:00 2001 From: Nicolas Merget <104347736+nmerget@users.noreply.github.com> Date: Thu, 11 Apr 2024 08:30:26 +0200 Subject: [PATCH] Update showcases/patternhub/scripts/get-properties-file.js Co-authored-by: Maximilian Franzke <787658+mfranzke@users.noreply.github.com> --- showcases/patternhub/scripts/get-properties-file.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/showcases/patternhub/scripts/get-properties-file.js b/showcases/patternhub/scripts/get-properties-file.js index 282bad9e4c4..b5260d817d8 100644 --- a/showcases/patternhub/scripts/get-properties-file.js +++ b/showcases/patternhub/scripts/get-properties-file.js @@ -62,9 +62,7 @@ const getPropertiesFile = ({ displayName, description, props }) => { propertyTable += `| ${property.tsType.type ?? property.tsType.name} `; if ( - propertyKey === 'icon' || - propertyKey === 'iconAfter' || - propertyKey === 'messageIcon' + ['icon', 'iconAfter', 'messageIcon'].includes(propertyKey) ) { propertyTable += `| [IconTypes](https://db-ui.github.io/mono/review/main/foundations/icons/overview) |\n`; } else {