openbikesensor / portal

OpenBikeSensor data collection portal
GNU Lesser General Public License v3.0
36 stars 17 forks source link

remove fixup component for <Link><Menu.Item/></Link> #348

Closed yyxcv closed 1 month ago

yyxcv commented 1 year ago

In App.tsx there are two "fixup components" that could be removed (MenuItemForLink and DropDownItemForLink).

These were introduced because a warning is shown if we put an \ in a \:

grafik

The problem is only triggered (and not caused) by the \ \ nesting. It is caused by the <>-element in the \ in App.tsx (As suggested here https://stackoverflow.com/questions/66463284/react-router-warning-route-elements-should-not-change-from-controlled-to-unco).

This pr:

Benefit:

gluap commented 1 year ago

Thank you for investigating this so thoroughly. We've merged a large number of changes from the next branch.

Could you rebase this onto main to make it merge? We'd gladly release it with the next version!

sonarcloud[bot] commented 1 year ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

opatut commented 1 month ago

I finally got around to cherry picking this onto the current next branch. There were some CSS issues after the component restructure, which I fixed. You're still mentioned as author @yyxcv on the commit, but I couldn't push to your MR branch, so I have to close this without merging. The code is in though, thanks for your contribution.