From bff1caebd1b30ac3b1bcfdc5708eee43af934c7f Mon Sep 17 00:00:00 2001 From: brynpttrsn Date: Sun, 4 Feb 2024 15:06:50 -0500 Subject: [PATCH] fix(website): move function header into switcher (#10077) fix(website): move header into switcher --- .../src/components/model/function/Function.tsx | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/apps/website/src/components/model/function/Function.tsx b/apps/website/src/components/model/function/Function.tsx index 6aee8dcbc..7edaaef4c 100644 --- a/apps/website/src/components/model/function/Function.tsx +++ b/apps/website/src/components/model/function/Function.tsx @@ -8,16 +8,14 @@ const OverloadSwitcher = dynamic(async () => import('../../OverloadSwitcher')); export function Function({ item }: { readonly item: ApiFunction }) { if (item.getMergedSiblings().length > 1) { - const overloads = item - .getMergedSiblings() - .map((sibling, idx) => ); - - return ( - - - + const overloads = item.getMergedSiblings().map((sibling, idx) => ( + + + - ); + )); + + return ; } return (