Skip to content

Factor out new article vs edit article pages #19

@cirosantilli

Description

@cirosantilli

They are mostly copy paste now:

I'm giving it a shot but stuck at some point, I wanted to do a this.props from getInitialProps to check new at:

import ArticleEditor from "../../components/editor/ArticleEditor";

export default function PublishArticleEditor() {
  return (
    <ArticleEditor new />
  );
};

but I can't use this.props from there. Thinking is hard.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions