diff --git a/web/pageComponents/topicPages/AddToCalendar.tsx b/web/pageComponents/topicPages/AddToCalendar.tsx index 4a80064b1..a64690e52 100644 --- a/web/pageComponents/topicPages/AddToCalendar.tsx +++ b/web/pageComponents/topicPages/AddToCalendar.tsx @@ -1,10 +1,10 @@ import { useEffect, useState } from 'react' import { isAfter } from 'date-fns' import { getEventDates, toUTCDateParts } from '../../common/helpers/dateUtilities' - import type { EventDateType } from '../../types/index' import { useIntl } from 'react-intl' -import { Button } from '@core/Button' +import { twMerge } from 'tailwind-merge' +import { commonButtonStyling, getVariant } from '@core/Button' // eslint-disable-next-line @typescript-eslint/no-var-requires const ics = require('ics') @@ -80,7 +80,6 @@ const AddToCalendar = ({ eventDate, title, location }: AddToCalendarProps) => { title: title, location: location || '', } - setFileData(createICS(eventData)) } }, [eventDate, location, title]) @@ -95,14 +94,15 @@ const AddToCalendar = ({ eventDate, title, location }: AddToCalendarProps) => { { eventTitle: title }, ) return ( - + ) }