mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 21:38:35 +03:00
Add narratives
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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/>);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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 => {
|
||||
|
||||
Reference in New Issue
Block a user