Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
scruffian committed Mar 14, 2024
1 parent bcb1430 commit fe37fcf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/block-editor/src/hooks/use-zoom-out.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ import { useEffect, useRef } from '@wordpress/element';
*/
import { store as blockEditorStore } from '../store';

/**
* A hook used to set the editor mode to zoomed out mode, invoking the hook sets the mode.
*/
export function useZoomOut() {
const { __unstableSetEditorMode } = useDispatch( blockEditorStore );
const { mode } = useSelect( ( select ) => {
Expand Down

0 comments on commit fe37fcf

Please sign in to comment.