import React, { Component, PropTypes } from 'react'; import { connect } from 'react-redux'; import { SIMPLE, EDITORIAL_WORKFLOW } from '../constants/publishModes'; import history from '../routing/history'; import UnpublishedEntriesPanel from './editorialWorkflow/UnpublishedEntriesPanel'; import styles from './breakpoints.css'; class DashboardPage extends Component { componentWillMount() { if (this.props.publishMode === SIMPLE) { history.push(`/collections/${ this.props.firstCollection }`); } } render() { return (