From 976634a908482b2f17474b339f8140f8d0d21be3 Mon Sep 17 00:00:00 2001 From: Tagaishi Date: Thu, 7 Dec 2023 18:30:49 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=EF=B8=8F=20Improve=20code=20in=20mana?= =?UTF-8?q?ge=20layout=20page=20(#1681)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Thomas Camlong --- .../layout/Templates/ManageLayout.tsx | 20 +++++++------------ 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/src/components/layout/Templates/ManageLayout.tsx b/src/components/layout/Templates/ManageLayout.tsx index 6634597a1..a88ea2868 100644 --- a/src/components/layout/Templates/ManageLayout.tsx +++ b/src/components/layout/Templates/ManageLayout.tsx @@ -201,20 +201,14 @@ export const ManageLayout = ({ children }: ManageLayoutProps) => { const matchesActive = router.pathname.endsWith(item.href); - if (item.href.startsWith('http')) { - return ( - - ); - } - return ( - + ); })}