Skip to content

Commit

Permalink
Use arrow function instead of traditional function
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Sep 11, 2018
1 parent 3bdfd9d commit 4acd0c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions edit-post/components/header/publish-button/index.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { PostPublishPanelToggle, PostPublishButton } from '@wordpress/editor';

const PublishButton = function( {
const PublishButton = ( {
isSidebarOpen,
isSidebarEnabled,
onToggle,
forceIsDirty,
forceIsSaving } ) {
forceIsSaving } ) => {
if ( isSidebarEnabled ) {
return (
<PostPublishPanelToggle
Expand Down

0 comments on commit 4acd0c5

Please sign in to comment.