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

👻 Add some missing key props to fragments #1594

Merged
merged 2 commits into from
Dec 7, 2023

Conversation

sjd78
Copy link
Member

@sjd78 sjd78 commented Dec 6, 2023

Since using the nice looking version of React.Fragment of <>...</> does not allow for adding a key prop when a fragment is used in an array/map(), switch to the verbose version and add the key.

Therefore <>...</> becomes <React.Fragment key={...}>...</React.Fragment>.

Since using the nice looking version of `React.Fragment` of `<>...</>`
does not allow for adding a key prop when a fragment is used in an
array/map(), switch to the verbose version and add the key.

Therefore `<>...</>` becomes `<React.Fragment key={...}>...</React.Fragment>`.

Signed-off-by: Scott J Dickerson <[email protected]>
@sjd78 sjd78 requested a review from ibolton336 December 6, 2023 21:25
Copy link

codecov bot commented Dec 6, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (cc14acb) 39.36% compared to head (042b487) 39.36%.
Report is 1 commits behind head on main.

❗ Current head 042b487 differs from pull request most recent head c9436f0. Consider uploading reports for the commit c9436f0 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1594   +/-   ##
=======================================
  Coverage   39.36%   39.36%           
=======================================
  Files         146      146           
  Lines        4816     4816           
  Branches     1152     1152           
=======================================
  Hits         1896     1896           
  Misses       2906     2906           
  Partials       14       14           
Flag Coverage Δ
client 39.36% <ø> (ø)
server ∅ <ø> (∅)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

Copy link
Member

@ibolton336 ibolton336 left a comment

Choose a reason for hiding this comment

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

LGTM

@ibolton336 ibolton336 merged commit ca600a3 into konveyor:main Dec 7, 2023
@sjd78 sjd78 deleted the fixup_fragment_keys branch February 9, 2024 18:59
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.

2 participants