Skip to content

Commit

Permalink
Make enable/disable actions more obvious
Browse files Browse the repository at this point in the history
  • Loading branch information
oandregal committed Sep 11, 2018
1 parent 874a40b commit ee882d4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/editor/src/store/reducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -812,10 +812,15 @@ export function preferences( state = PREFERENCES_DEFAULTS, action ) {
};

case 'ENABLE_PUBLISH_SIDEBAR':
return {
...state,
isPublishSidebarEnabled: true,
};

case 'DISABLE_PUBLISH_SIDEBAR':
return {
...state,
isPublishSidebarEnabled: action.type === 'ENABLE_PUBLISH_SIDEBAR',
isPublishSidebarEnabled: false,
};
}

Expand Down

0 comments on commit ee882d4

Please sign in to comment.