From 98066274faa633488fd727ae3abe80240e586f74 Mon Sep 17 00:00:00 2001 From: Julien Froidefond Date: Thu, 13 Feb 2025 07:58:35 +0100 Subject: [PATCH] fix: correction de l'erreur d'hydration dans la sidebar --- src/components/layout/Sidebar.tsx | 100 +++++++++++++++--------------- 1 file changed, 51 insertions(+), 49 deletions(-) diff --git a/src/components/layout/Sidebar.tsx b/src/components/layout/Sidebar.tsx index 653a2ec..45e6b78 100644 --- a/src/components/layout/Sidebar.tsx +++ b/src/components/layout/Sidebar.tsx @@ -122,58 +122,60 @@ export function Sidebar({ isOpen }: SidebarProps) { - <> -
-
-
-

Bibliothèques

- -
- {isLoading ? ( -
Chargement...
- ) : libraries.length === 0 ? ( -
Aucune bibliothèque
- ) : ( - libraries.map((library) => ( - +
+
+
+

Bibliothèques

+
-
- -
-
-

Configuration

- + +
+ {isLoading ? ( +
Chargement...
+ ) : libraries.length === 0 ? ( +
Aucune bibliothèque
+ ) : ( + libraries.map((library) => ( + + + {library.name} + + )) )} - > - - Préférences - +
-
- + +
+
+

Configuration

+ + + Préférences + +
+
+ + )}
{isAuthenticated && (