edit unpublished content on EntryPage (through HOC)

This commit is contained in:
Cássio Zen
2016-09-13 03:59:48 -03:00
parent c84d538eb6
commit f51525baaa
10 changed files with 113 additions and 14 deletions

View File

@ -5,7 +5,7 @@ import { loadEntries } from '../actions/entries';
import { selectEntries } from '../reducers';
import { Loader } from '../components/UI';
import EntryListing from '../components/EntryListing';
import EditorialWorkflow from './EditorialWorkflowHoC';
import CollectionPageHOC from './editorialWorkflow/CollectionPageHOC';
class DashboardPage extends React.Component {
componentDidMount() {
@ -48,7 +48,7 @@ DashboardPage.propTypes = {
* Instead of checking the publish mode everywhere to dispatch & render the additional editorial workflow stuff,
* We delegate it to a Higher Order Component
*/
DashboardPage = EditorialWorkflow(DashboardPage);
DashboardPage = CollectionPageHOC(DashboardPage);
function mapStateToProps(state, ownProps) {