Add narratives

This commit is contained in:
Franc Camps-Febrer
2018-12-03 18:55:24 +00:00
parent e02b1c93e1
commit 0c0625b58e
4 changed files with 5 additions and 6 deletions

View File

@@ -23,7 +23,7 @@ class Dashboard extends React.Component {
this.handleTagFilter = this.handleTagFilter.bind(this);
this.updateTimerange = this.updateTimerange.bind(this);
this.eventsById = {};
this.eventsById = {}
}
componentDidMount() {

View File

@@ -28,12 +28,12 @@ export default class Notification extends React.Component{
}
renderNotificationContent(notification) {
const { type, message, items } = notification;
let { type, message, items } = notification;
return (
<div>
<div className={`message ${type}`}>
{`${message}`}
{message}
</div>
<div className={`details ${this.state.isExtended}`}>
{(items !== null) ? this.renderItems(items) : ''}
@@ -48,7 +48,6 @@ export default class Notification extends React.Component{
return (
<div className={`notification-wrapper`}>
{this.props.notifications.map((notification) => {
console.log(notification)
return (
<div className='notification' onClick={() => this.toggleDetails() }>
<button
@@ -65,6 +64,6 @@ console.log(notification)
</div>
)
}
return '';
return (<div/>);
}
}

View File

@@ -232,6 +232,7 @@ function mapStateToProps(state) {
return {
tags: selectors.getTagTree(state),
categories: selectors.selectCategories(state),
narratives: selectors.selectNarratives(state),
language: state.app.language,
tagFilters: selectors.selectTagList(state),
categoryFilter: state.app.filters.categories,

View File

@@ -87,7 +87,6 @@ export function validateDomain (domain) {
validateItem(event, 'events', eventSchema);
});
domain.categories.forEach(category => {
console.log(category)
validateItem(category, 'categories', categorySchema);
});
domain.sites.forEach(site => {