Skip to content

Commit

Permalink
Fix the errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jesstelford committed Feb 26, 2024
1 parent 9c5fd0c commit 47fa094
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/funny-ravens-act.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@shopify/polaris': patch
---

[IndexTable] Unify sticky table header rendering with regular header for consistency.
2 changes: 1 addition & 1 deletion polaris-react/src/components/IndexTable/IndexTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 47fa094

Please sign in to comment.