From afd0bd06926fdd83750954a4f4cd0af2c010ab25 Mon Sep 17 00:00:00 2001
From: Riad Benguella <benguella@gmail.com>
Date: Thu, 17 Nov 2022 15:10:28 +0100
Subject: [PATCH] Fix post rebase

---
 .../edit-site/src/components/layout/index.js  | 21 +++++++++----------
 1 file changed, 10 insertions(+), 11 deletions(-)

diff --git a/packages/edit-site/src/components/layout/index.js b/packages/edit-site/src/components/layout/index.js
index 16a4d93414be0f..897f5d274f329a 100644
--- a/packages/edit-site/src/components/layout/index.js
+++ b/packages/edit-site/src/components/layout/index.js
@@ -174,17 +174,16 @@ export default function Layout() {
 					<AnimatePresence>
 						{ isEditorPage && canvasMode === 'edit' && (
 							<NavigableRegion
-								motionProps={ {
-									initial: { y: -60 },
-									animate: { y: 0 },
-									exit: { y: -60 },
-									transition: {
-										type: 'tween',
-										duration: disableMotion
-											? 0
-											: ANIMATION_DURATION,
-										ease: 'easeOut',
-									},
+								as={ motion.div }
+								initial={ { y: -60 } }
+								animate={ { y: 0 } }
+								edit={ { y: -60 } }
+								transition={ {
+									type: 'tween',
+									duration: disableMotion
+										? 0
+										: ANIMATION_DURATION,
+									ease: 'easeOut',
 								} }
 								className="edit-site-layout__editor-header"
 								ariaLabel={ __( 'Editor top bar' ) }