octopusthink / nautilus

Inclusive, open-source design system and React component library.
https://nautilus.octopusthink.com
MIT License
2 stars 0 forks source link

Fix custom prop type for List #157

Closed tofumatt closed 5 years ago

tofumatt commented 5 years ago

In a Gatsby blog I'm making that's using Nautilus and rehype-react, I'm getting a prop-type warning say I'm not using List.Item, even though I definitely am. I think our check is maybe a bit too intense and buggy.

Either it needs to be fixed or needs to be more of a helpful warning (as we discard unrecognised children anyway).