From a80d40156f1d1949379611ad52b7a9caad58b346 Mon Sep 17 00:00:00 2001 From: Wahyu Kurniawan Date: Wed, 6 Mar 2024 11:11:16 +0700 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20style:=20remove=20bouncing=20ani?= =?UTF-8?q?mation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/components/shared/Sidebar/Sidebar.tsx | 2 +- packages/frontend/src/pages/org-slug/layout.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/frontend/src/components/shared/Sidebar/Sidebar.tsx b/packages/frontend/src/components/shared/Sidebar/Sidebar.tsx index 62e25fac..06e7b053 100644 --- a/packages/frontend/src/components/shared/Sidebar/Sidebar.tsx +++ b/packages/frontend/src/components/shared/Sidebar/Sidebar.tsx @@ -71,7 +71,7 @@ export const Sidebar = ({ mobileOpen }: SidebarProps) => { initial={{ x: -320 }} animate={{ x: isDesktop || mobileOpen ? 0 : -320 }} exit={{ x: -320 }} - transition={{ type: 'spring', stiffness: 260, damping: 20 }} + transition={{ ease: 'easeInOut', duration: 0.3 }} className={cn('h-full flex-none w-[320px] lg:flex hidden flex-col', { flex: mobileOpen, })} diff --git a/packages/frontend/src/pages/org-slug/layout.tsx b/packages/frontend/src/pages/org-slug/layout.tsx index cb126af1..bf503c10 100644 --- a/packages/frontend/src/pages/org-slug/layout.tsx +++ b/packages/frontend/src/pages/org-slug/layout.tsx @@ -111,7 +111,7 @@ export const DashboardLayout = ({ animate={{ x: isSidebarOpen ? '10px' : 0, // Translate X based on sidebar state }} - transition={{ type: 'spring', stiffness: 260, damping: 20 }} + transition={{ ease: 'easeInOut', duration: 0.3 }} >