Skip to content

Commit

Permalink
feat: hide editor preview ui
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffersonrabb committed Apr 13, 2020
1 parent 85ac847 commit 37315d0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/editor/editor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ import apiFetch from '@wordpress/api-fetch';
import { withDispatch, withSelect } from '@wordpress/data';
import { useEffect, useState } from '@wordpress/element';

/**
* Internal dependencies
*/
import './style.scss';

export default compose( [
withDispatch( dispatch => {
const { lockPostSaving, unlockPostSaving } = dispatch( 'core/editor' );
Expand Down
4 changes: 4 additions & 0 deletions src/editor/editor/style.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// Hide the editor Preview UI
.editor-post-preview__dropdown {
display: none;
}

0 comments on commit 37315d0

Please sign in to comment.