jasonsalzman / react-add-to-calendar

A simple, customizable, and reusable Add to Calendar button component for React
https://jasonsalzman.github.io/react-add-to-calendar/
MIT License
181 stars 123 forks source link

Event object remains as default #53

Closed jrd656 closed 4 years ago

jrd656 commented 4 years ago

I've copied and pasted the code and everything is working great, up until I click a calendar (ie, Google Calendar). It doesn't matter what I try, it always opens the calendar with the same default information:

    event: {
      title: 'Sample Event',
      description: 'This is the sample event provided as an example only',
      location: 'Portland, OR',
      startTime: '2016-09-16T20:15:00-04:00',
      endTime: '2016-09-16T21:45:00-04:00'
    }

I've tried this on incognito mode, so suggests it isn't a caching problem. Does anyone know what I should try?

jrd656 commented 4 years ago

I'm an idiot. I was importing: import AddToCalendar from 'react-add-to-calendar';

When I should have been importing the component.