From 47fa0949b400ad7d380219c1fe7a796d0294209a Mon Sep 17 00:00:00 2001 From: Jess Telford Date: Mon, 26 Feb 2024 16:48:31 +1100 Subject: [PATCH] Fix the errors --- .changeset/funny-ravens-act.md | 5 +++++ polaris-react/src/components/IndexTable/IndexTable.tsx | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/funny-ravens-act.md diff --git a/.changeset/funny-ravens-act.md b/.changeset/funny-ravens-act.md new file mode 100644 index 00000000000..9bb403851e7 --- /dev/null +++ b/.changeset/funny-ravens-act.md @@ -0,0 +1,5 @@ +--- +'@shopify/polaris': patch +--- + +[IndexTable] Unify sticky table header rendering with regular header for consistency. diff --git a/polaris-react/src/components/IndexTable/IndexTable.tsx b/polaris-react/src/components/IndexTable/IndexTable.tsx index f7422ae20f8..50ae57f163f 100644 --- a/polaris-react/src/components/IndexTable/IndexTable.tsx +++ b/polaris-react/src/components/IndexTable/IndexTable.tsx @@ -869,7 +869,7 @@ function IndexTableBase({ Tag: React.ElementType, tagProps: {[x: string]: unknown}, ) { - return (heading: IndexTableHeading, index: number) => { + return function Heading(heading: IndexTableHeading, index: number) { const isSecond = index === 0; const isLast = index === headings.length - 1; const hasSortable = sortable?.some((value) => value === true);