Skip to content

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

Closed
ZebulanStanphill wants to merge 1 commit intoWordPress:masterfrom
ZebulanStanphill:update/cover-image-edit-split
Closed

Cover Image block: move edit function into separate file + code cleanup#10582
ZebulanStanphill wants to merge 1 commit intoWordPress:masterfrom
ZebulanStanphill:update/cover-image-edit-split

Conversation

@ZebulanStanphill
Copy link
Copy Markdown
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
Copy Markdown
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