Create speaker and feedback link components
This commit is contained in:
parent
1dd3ff9292
commit
2afc4f2b6a
|
@ -0,0 +1,3 @@
|
||||||
|
export default function FeedbackLink(event) {
|
||||||
|
return (<a href={event.feedback_url}>Submit feedback</a>);
|
||||||
|
}
|
|
@ -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 && <>/⁠{speaker.organisation}⁠/</>}
|
||||||
|
</>);
|
||||||
|
}
|
||||||
|
|
||||||
|
Speaker.propTypes = {
|
||||||
|
first_name: PropTypes.string.isRequired,
|
||||||
|
last_name: PropTypes.string.isRequired,
|
||||||
|
organisation: PropTypes.string,
|
||||||
|
};
|
Loading…
Reference in New Issue