Show a very basic event page when an event is clicked.
parent
9b96e37e44
commit
3883cbad1c
@ -0,0 +1,23 @@
|
|||||||
|
import * as React from 'react';
|
||||||
|
|
||||||
|
import * as ICAL from 'ical.js';
|
||||||
|
|
||||||
|
class Event extends React.Component {
|
||||||
|
props: {
|
||||||
|
event?: ICAL.Event,
|
||||||
|
};
|
||||||
|
|
||||||
|
render() {
|
||||||
|
if (this.props.event === undefined) {
|
||||||
|
throw Error('Event should be defined!');
|
||||||
|
}
|
||||||
|
|
||||||
|
return (
|
||||||
|
<div>
|
||||||
|
<h3>{this.props.event.summary}</h3>
|
||||||
|
</div>
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Event;
|
Loading…
Reference in New Issue