Skip to content

Commit

Permalink
fix hook export
Browse files Browse the repository at this point in the history
  • Loading branch information
vcanales committed Feb 3, 2021
1 parent fb4d029 commit 70951cd
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/block-library/src/navigation/use-autohide.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
import { useEffect, useState } from '@wordpress/element';

export function useAutohide( navElement, wrappedElementsContainer ) {
export default function useAutohide( navElement, wrappedElementsContainer ) {
const [ isWrapping, setIsWrapping ] = useState( false );

useEffect( () => {
Expand Down

0 comments on commit 70951cd

Please sign in to comment.