mirror of
https://github.com/bellingcat/ukraine-timemap.git
synced 2026-06-12 05:18:34 +03:00
Add enabled sites marker from data object
This commit is contained in:
@@ -92,6 +92,7 @@ class Dashboard extends React.Component {
|
||||
|
||||
render () {
|
||||
const { actions, app, domain, ui } = this.props
|
||||
console.log(app)
|
||||
return (
|
||||
<div>
|
||||
<Toolbar
|
||||
@@ -170,7 +171,7 @@ function mapDispatchToProps (dispatch) {
|
||||
}
|
||||
|
||||
export default connect(
|
||||
// state => state,
|
||||
state => injectSource("Hromadske.tv - Paratroopers Video"),
|
||||
state => state,
|
||||
// state => injectSource("Hromadske.tv - Paratroopers Video"),
|
||||
mapDispatchToProps
|
||||
)(Dashboard)
|
||||
|
||||
@@ -141,7 +141,7 @@ class SourceOverlay extends React.Component {
|
||||
</svg>
|
||||
</div>
|
||||
) : null
|
||||
|
||||
console.log(this.props)
|
||||
console.log(this.state.idx)
|
||||
console.log(this.props.source.paths.length)
|
||||
const forwardArrow = this.state.idx < this.props.source.paths.length - 1 ? (
|
||||
|
||||
@@ -161,7 +161,7 @@ class Toolbar extends React.Component {
|
||||
<div className='toolbar-header'><p>{title}</p></div>
|
||||
<div className='toolbar-tabs'>
|
||||
{this.renderToolbarTab(0, narrativesLabel, 'timeline')}
|
||||
{(isCategories) ? this.renderToolbarTab(1, categoriesLabel, 'category') : null}
|
||||
{(isCategories) ? this.renderToolbarTab(1, categoriesLabel, 'widgets') : null}
|
||||
{(isTags) ? this.renderToolbarTab(2, tagsLabel, 'filter_list') : null}
|
||||
</div>
|
||||
<ToolbarBottomActions
|
||||
|
||||
Reference in New Issue
Block a user