Add enabled sites marker from data object

This commit is contained in:
Franc Camps-Febrer
2019-01-31 12:42:52 -05:00
parent 3efdf48c52
commit c2cd703f06
6 changed files with 9 additions and 6 deletions

View File

@@ -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)

View File

@@ -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 ? (

View File

@@ -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