Commit bc88aef4 authored by Maxime Chaillet's avatar Maxime Chaillet

display message when the logbook is empty. This is now handled by the container.

parent 7e64d0aa
......@@ -71,6 +71,13 @@ class EventList extends React.Component {
}
}
EventList.propTypes = {
/** the array of unsorted events as provided by the ICAT+ server */
events: PropTypes.array.isRequired
}
export default EventList;
class LazyEvent extends React.Component {
getHTMLContent(event) {
return getContent(event.content, 'html') ? convertImagesToThumbnails(getContent(event.content, 'html')) : convertImagesToThumbnails(getContent(event.content, 'plainText'));
......@@ -88,17 +95,7 @@ class LazyEvent extends React.Component {
} else {
return <div style={{ fontStyle: 'italic', color: '#888888' }}> There is no content </div>
}
}
}
EventList.propTypes = {
/** the array of unsorted events as provided by the ICAT+ server */
events: PropTypes.array
}
export default EventList;
......@@ -10,9 +10,9 @@ class UserMessage extends React.Component {
function getStyle(isTextCentered) {
if (isTextCentered) {
return { textAlign: 'center', borderRadius: '25px' };
return { textAlign: 'center', borderRadius: '20px', marginLeft:'10px', marginRight:'10px' };
} else {
return { textAlign: 'left', borderRadius: '25px' };
return { textAlign: 'left', borderRadius: '20px', marginLeft:'10px', marginRight:'10px' };
}
}
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment