Skip to content

Conversation

@rnicholus
Copy link
Contributor

In #1244, the return type of Button and DropdownItem was changed to ReactNode. This is not an acceptable return type for functional components. The correct return type is JSX.Element. This change fixes the regression from that PR (introduced in v0.7.3. Also fixes #962.

@bolt-new-by-stackblitz
Copy link

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@vercel
Copy link

vercel bot commented Mar 14, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
flowbite-react ❌ Failed (Inspect) Mar 14, 2024 1:08am

@rnicholus rnicholus force-pushed the fix/button-and-dropdown-typescript-regression branch from 12a345c to f6fa786 Compare March 14, 2024 01:06
@codecov
Copy link

codecov bot commented Mar 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.51%. Comparing base (7461173) to head (f6fa786).
Report is 201 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1297      +/-   ##
==========================================
- Coverage   99.54%   95.51%   -4.03%     
==========================================
  Files         163      218      +55     
  Lines        6621     9641    +3020     
  Branches      401      554     +153     
==========================================
+ Hits         6591     9209    +2618     
- Misses         30      432     +402     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rnicholus
Copy link
Contributor Author

it seems there are a number of changes built on top of the issues introduced in #1244. fixing this is going to be non-trivial

@rnicholus rnicholus closed this Mar 14, 2024
@rnicholus rnicholus deleted the fix/button-and-dropdown-typescript-regression branch March 14, 2024 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Button can't be rendered as it's return type is ReactNode.

1 participant