From e4c066b7b0af1389f6ddb6b9aee0d708e3bdfb51 Mon Sep 17 00:00:00 2001 From: undefined Date: Tue, 10 Sep 2024 22:10:35 +0800 Subject: [PATCH] chore: hide group when searching --- src/components/HardwareListing/HardwareListing.tsx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/components/HardwareListing/HardwareListing.tsx b/src/components/HardwareListing/HardwareListing.tsx index 91bd109..2a3592c 100644 --- a/src/components/HardwareListing/HardwareListing.tsx +++ b/src/components/HardwareListing/HardwareListing.tsx @@ -56,7 +56,7 @@ const OnItemDragStart = ( }; }; -const ModuleGroup = (props: { level: number; group: ListingGroup; hideGroup?: boolean }) => { +const ModuleGroup = (props: { level: number; group: ListingGroup; hideGroup?: number }) => { const fitManager = useFitManager(); const PreviewStart = React.useCallback( @@ -100,7 +100,12 @@ const ModuleGroup = (props: { level: number; group: ListingGroup; hideGroup?: bo props.group.groups[a].name.localeCompare(props.group.groups[b].name), ) .map((groupId) => { - return ; + return ; })} ); @@ -523,10 +528,10 @@ export const HardwareListing = () => {
- +
- +
);