Skip to content
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

Add new lines and links to events calendar #596

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
2 changes: 1 addition & 1 deletion components/Events/SelectedEvent.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function SelectedEvent({ event }) {
{
location && <p className={styles['date-line']}>{location}</p>
}
<p className={styles.description}>{description}</p>
<p className={styles.description} dangerouslySetInnerHTML={{ __html: description }}></p>
{(links && links.length > 0) &&
<ul className="list-unstyled">
{links.map(({ text, href, ext }) => <li key={href}><Link href={href}><a className={styles['event-link']} target={ext ? '_blank': ''} rel={ext ? 'noopener noreferrer' : ''}>{text}</a></Link></li>)}
Expand Down
4 changes: 4 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,8 @@ module.exports = {
domains: ['www.netlify.com'],
},
target: 'serverless',
webpack: (config) => {
config.externals = [...config.externals, 'canvas'];
return config;
},
};