the-programmers-hangout / website

🌳 TPH website
https://theprogrammershangout.com
MIT License
102 stars 67 forks source link

Fixing breadcrumbs 404 & Unique key prop warning on resource sidebar #226

Closed puremana closed 4 years ago

puremana commented 4 years ago

closes #198

Folders in resources that aren't the root folder have content. https://gyazo.com/2b0a2cee0c6b4ba586ad6384d85c010b

To fix this I don't link the second or more folder when rendering the breadcrumbs (not the best solution but since we can't tell if an item's path exists it's the best I could come up with)

This is what it looks like after the fix

image

I also noticed that there was this error relating to unique key props in the resource sidebar

image

and have fixed it accordingly.

Thanks

veksen commented 4 years ago

sorry for the delay! crazy week, left a comment