From 13814e7847106e6b45107e9cb7e2cfbfb3bfd352 Mon Sep 17 00:00:00 2001
From: Vicente Canales <vicente.canales@automattic.com>
Date: Tue, 2 Feb 2021 11:13:16 -0300
Subject: [PATCH] fix hook export

---
 package-lock.json                                     | 8 ++++++++
 packages/block-library/src/navigation/use-autohide.js | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/package-lock.json b/package-lock.json
index 334832a5637415..40e07ef9a18611 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -11880,7 +11880,15 @@
 				"memize": "^1.1.0",
 				"moment": "^2.22.1",
 				"react-easy-crop": "^3.0.0",
+				"react-merge-refs": "^1.1.0",
 				"tinycolor2": "^1.4.2"
+			},
+			"dependencies": {
+				"react-merge-refs": {
+					"version": "1.1.0",
+					"resolved": "https://registry.npmjs.org/react-merge-refs/-/react-merge-refs-1.1.0.tgz",
+					"integrity": "sha512-alTKsjEL0dKH/ru1Iyn7vliS2QRcBp9zZPGoWxUOvRGWPUYgjo+V01is7p04It6KhgrzhJGnIj9GgX8W4bZoCQ=="
+				}
 			}
 		},
 		"@wordpress/block-serialization-default-parser": {
diff --git a/packages/block-library/src/navigation/use-autohide.js b/packages/block-library/src/navigation/use-autohide.js
index 5ac06a24e27859..8629ae8e698753 100644
--- a/packages/block-library/src/navigation/use-autohide.js
+++ b/packages/block-library/src/navigation/use-autohide.js
@@ -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( () => {