From b2fffdfbf02e6cfd0583b119a03661bb86012b6b Mon Sep 17 00:00:00 2001 From: nikita Date: Mon, 30 Jun 2025 10:19:29 +0300 Subject: [PATCH] fix: table headcells nesting fix --- src/components/table/TableHead.tsx | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/src/components/table/TableHead.tsx b/src/components/table/TableHead.tsx index 3f5bb832..8699dffc 100644 --- a/src/components/table/TableHead.tsx +++ b/src/components/table/TableHead.tsx @@ -6,8 +6,6 @@ import { createMemo, children as resolveChildren, } from "solid-js"; -import TableCell from "./TableCell"; -import TableHeadCell from "./TableHeadCell"; import clsx from "clsx"; import { twMerge } from "tailwind-merge"; import { type IComponentBaseProps } from "../types"; @@ -31,19 +29,7 @@ const TableHead: Component = (props) => { return ( - - - {(child, index) => - local.noCell ? ( - child - ) : index() < 1 ? ( - {child} - ) : ( - {child} - ) - } - - + {resolved()} ); };