Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing props and value #1335

Merged
merged 5 commits into from
Dec 13, 2023
Merged

Fix missing props and value #1335

merged 5 commits into from
Dec 13, 2023

Conversation

jherdman
Copy link
Contributor

@jherdman jherdman commented Dec 13, 2023

Description

ECO ran into a few problems with the TableHead component when upgrading. This pull request includes the necessary fix ("Fix missing argument" commit), and resolves the type woes for the aforementioned file.

Changes include

  • breaking change: a change that is not backwards-compatible and/or changes current functionality
  • fix: a non-breaking change that solves an issue
  • feature: a non-breaking change that adds functionality
  • chore: contains no changes affecting the library, such as documentation or test updates

Feature checklist

  • Appropriate tests have been added
  • Documentation has been updated
  • Accessibility has been considered

@jherdman jherdman requested a review from haideralsh December 13, 2023 16:06
Comment on lines +19 to +25
const renderHeaderCellContent = ({
headerFormatter = defaultheaderFormatter,
align,
label,
dataKey,
width,
}: ColumnType) => headerFormatter({ align, label, dataKey, width });
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is possibly a breaking change, but it complies with the type described in Table.types.ts.

`index` was undefined
@haideralsh haideralsh force-pushed the fix-missing-props-and-value branch from 4bd57c2 to 1f41bad Compare December 13, 2023 16:37
This doesn't attempt to solve all type problems here. Removing the TS
opt out reveals further problems that will be resolved later.
BREAKING CHANGE: only properties conforming to the ColumnType are passed 
as props to the headerFormatter.
@haideralsh haideralsh force-pushed the fix-missing-props-and-value branch from 1f41bad to cafdf31 Compare December 13, 2023 16:38
@haideralsh haideralsh merged commit 6275641 into master Dec 13, 2023
5 checks passed
@haideralsh haideralsh deleted the fix-missing-props-and-value branch December 13, 2023 21:30
Copy link

🎉 This PR is included in version 9.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants