-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Padms/1816 #1841
Padms/1816 #1841
Conversation
@@ -88,7 +88,11 @@ const AddToCalendar = ({ eventDate, title, location }: AddToCalendarProps) => { | |||
if (!fileData) return null | |||
const atc = intl.formatMessage({ id: 'add_to_calendar_event', defaultMessage: 'Add to Calendar' }) | |||
return ( | |||
<Button {...(fileData && { href: fileData as string, download: `${title.replace(/ /g, '_')}.ics` })}> | |||
<Button | |||
aria-label={`${atc} ${title}`} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you add a :
here? So end result will be:
Add to Calendar: Q3 2022 analyst conference
instead of
Add to Calendar Q3 2022 analyst conference
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or: Add 'Q3 2022 analyst conference' to calendar
Very nice solution! 👏 |
👍 |
No description provided.