Skip to content

Commit

Permalink
Re-applied changes lost in the rebase with master
Browse files Browse the repository at this point in the history
  • Loading branch information
DanReyLop committed Apr 3, 2016
1 parent 1fc683d commit 57b2415
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
10 changes: 2 additions & 8 deletions client/post-editor/editor-sidebar/header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import Gridicon from 'components/gridicon';
import DraftsButton from 'post-editor/drafts-button';
import PostCountsData from 'components/data/post-counts-data';

function EditorSidebarHeader( { translate, type, siteId, showDrafts, toggleDrafts, allPostsUrl, toggleSidebar } ) {
function EditorSidebarHeader( { translate, type, siteId, showDrafts, toggleDrafts, allPostsUrl } ) {
const className = classnames( 'editor-sidebar__header', {
'is-drafts-visible': showDrafts
} );
Expand Down Expand Up @@ -58,11 +58,6 @@ function EditorSidebarHeader( { translate, type, siteId, showDrafts, toggleDraft
<DraftsButton onClick={ toggleDrafts } />
</PostCountsData>
) }
<Button
onClick={ toggleSidebar }
className="editor-sidebar__toggle-sidebar">
<span>{ translate( 'Write' ) }</span>
</Button>
</div>
);
}
Expand All @@ -73,8 +68,7 @@ EditorSidebarHeader.propTypes = {
siteId: PropTypes.number,
showDrafts: PropTypes.bool,
toggleDrafts: PropTypes.func,
allPostsUrl: PropTypes.string,
toggleSidebar: PropTypes.func
allPostsUrl: PropTypes.string
};

export default connect(
Expand Down
4 changes: 2 additions & 2 deletions client/post-editor/editor-sidebar/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ export default React.createClass( {
<div className="post-editor__sidebar">
<EditorSidebarHeader
allPostsUrl={ this.props.allPostsUrl } />
{ this.props.showDrafts ?
<DraftList
{ this.props.showDrafts
? <DraftList
sites={ this.props.sites }
onTitleClick={ this.props.onTitleClick }
showAllActionsMenu={ false }
Expand Down

0 comments on commit 57b2415

Please sign in to comment.