Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cover Image block: move edit function into separate file + code cleanup #10582

Closed
wants to merge 1 commit into from
Closed

Cover Image block: move edit function into separate file + code cleanup #10582

wants to merge 1 commit into from

Conversation

ZebulanStanphill
Copy link
Member

Description

This PR splits the edit function of the Cover Image block into a separate file. It also does some code cleanup to the Cover Image index.js and edit.js.

Types of changes

  • Cover Image edit function split off from cover-image/index.js to new cover-image/edit.js.
  • Imports in index.js and edit.js reorganized alphabetically.
  • Attributes in index.js reorganized alphabetically.
  • getEditWrapperProps in index.js now uses Array.prototype.includes instead of the slightly-less-readable Array.prototype.indexOf.

Testing instructions

There should be no difference in behavior compared to master.

@ZebulanStanphill ZebulanStanphill changed the title Moved Cover Image edit function into separate file + code cleanup Move Cover Image edit function into separate file + code cleanup Oct 13, 2018
@ZebulanStanphill ZebulanStanphill changed the title Move Cover Image edit function into separate file + code cleanup Cover Image block: move edit function into separate file + code cleanup Oct 13, 2018
@ZebulanStanphill
Copy link
Member Author

Closing in favor of #10758 and planned future PRs.

@ZebulanStanphill ZebulanStanphill deleted the update/cover-image-edit-split branch October 18, 2018 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant