diff --git a/app/[locale]/search/helper/SearchSubNavbar.tsx b/app/[locale]/search/helper/SearchSubNavbar.tsx index 237c73e5..8a7ad2e8 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 }) { ))} ); -} +};