From e24176dc515640c1141f5849b947c321766a6b69 Mon Sep 17 00:00:00 2001 From: Yeolyi Date: Wed, 27 Mar 2024 13:25:16 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20SearchSubNavbar=EC=97=90=EC=84=9C=20?= =?UTF-8?q?=EA=B2=80=EC=83=89=EA=B2=B0=EA=B3=BC=20=EC=97=86=EC=9C=BC?= =?UTF-8?q?=EB=A9=B4=20=EC=8A=A4=ED=81=AC=EB=A1=A4=20=EC=95=88=ED=95=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/[locale]/search/helper/SearchSubNavbar.tsx | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/app/[locale]/search/helper/SearchSubNavbar.tsx b/app/[locale]/search/helper/SearchSubNavbar.tsx index 237c73e59..8a7ad2e8e 100644 --- a/app/[locale]/search/helper/SearchSubNavbar.tsx +++ b/app/[locale]/search/helper/SearchSubNavbar.tsx @@ -33,12 +33,14 @@ export default function SearchSubNavbar({ node }: { node: TreeNode[] }) { ); } -function SubTab({ node }: { node: TreeNode }) { +const SubTab = ({ node }: { node: TreeNode }) => { return ( <> {node.name} @@ -47,7 +49,9 @@ function SubTab({ node }: { node: TreeNode }) { {node.children?.map((childNode, idx) => ( @@ -57,4 +61,4 @@ function SubTab({ node }: { node: TreeNode }) { ))} ); -} +};