jasonleibowitz / react-add-to-calendar-hoc

Simple Unopinionated React Add to Calendar Button. Bring your own components.
http://leibowitz.me/react-add-to-calendar-hoc/docs/
MIT License
70 stars 40 forks source link

Not Compatible with MaterialUI v3+ #48

Open LBWright opened 3 years ago

LBWright commented 3 years ago

It's expecting an open prop but not an isOpen prop. I was able to make my button work as expected, but the Dialog, Modal or Drawer just doesn't work with the current implementation. Is there anything that you can recommend?

My implementation has been pretty vanilla.

const AddToCalendarDropdown = AddToCalendarHOC(Button, Dialog);  // Dialog, Select, Modal, and Drawer were all tried
<AddToCalendarDropdown event={getEvent()} />