Create speaker and feedback link components

This commit is contained in:
Vencislav Atanasov 2024-09-22 04:01:57 +03:00
parent 1dd3ff9292
commit 2afc4f2b6a
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,3 @@
export default function FeedbackLink(event) {
return (<a href={event.feedback_url}>Submit feedback</a>);
}

15
src/Schedule/Speaker.jsx Normal file
View File

@ -0,0 +1,15 @@
import { getSpeakerName } from './utils.js';
import PropTypes from 'prop-types';
export default function Speaker(speaker) {
return (<>
<a href={'#'.concat(getSpeakerName(speaker))}>{getSpeakerName(speaker)}</a>
{speaker.organisation && <>/&#8288;{speaker.organisation}&#8288;/</>}
</>);
}
Speaker.propTypes = {
first_name: PropTypes.string.isRequired,
last_name: PropTypes.string.isRequired,
organisation: PropTypes.string,
};