From e1fbd83b5cfa30ef3a71874f3f17f327e18dbc5e Mon Sep 17 00:00:00 2001 From: Jonghyeon Ko Date: Mon, 23 Nov 2026 03:21:23 +0900 Subject: [PATCH] fix: add logos to the maintainer framework filter --- .../MaintainersDirectoryFilters.tsx | 69 ++++++++++++------- 1 file changed, 45 insertions(+), 24 deletions(-) diff --git a/src/components/MaintainersDirectoryFilters.tsx b/src/components/MaintainersDirectoryFilters.tsx index cd802cbac..b064f60a0 100644 --- a/src/components/MaintainersDirectoryFilters.tsx +++ b/src/components/MaintainersDirectoryFilters.tsx @@ -80,12 +80,15 @@ function FilterSelect< value: TValue label: string icon?: Icon + logo?: string iconColor?: string }> }) { - const selectionCount = Array.isArray(selection.value) - ? selection.value.length - : 0 + const selectedValues = Array.isArray(selection.value) ? selection.value : [] + const selectedLogo = + selectedValues.length === 1 + ? choices.find(({ value }) => value === selectedValues[0])?.logo + : undefined return (
@@ -98,8 +101,17 @@ function FilterSelect< {label} - - {selectionCount > 1 ? `${selectionCount} selected` : undefined} + {selectedLogo && ( + + )} + + {selectedValues.length > 1 + ? `${selectedValues.length} selected` + : undefined}