From 0ee9a800c85300690c201d14c3cdfabbe22a11f6 Mon Sep 17 00:00:00 2001
From: "hamza.bouslama" <hamza.bouslama@marketingconfort.com>
Date: Tue, 20 May 2025 08:27:07 +0100
Subject: [PATCH] Solving bug in navigation of dashboard

---
 .../layouts/dashboard/config-navigation.tsx   | 50 +++++++++----------
 1 file changed, 25 insertions(+), 25 deletions(-)

diff --git a/src/shared/layouts/dashboard/config-navigation.tsx b/src/shared/layouts/dashboard/config-navigation.tsx
index 5d97c23b..24fcc43e 100644
--- a/src/shared/layouts/dashboard/config-navigation.tsx
+++ b/src/shared/layouts/dashboard/config-navigation.tsx
@@ -648,7 +648,9 @@ export function useNavData() {
               path: paths.dashboard.admin.media.root,
               icon: ICONS.file,
             },
-            {
+          ],
+        },
+        {
               subheader: 'Chatbot Configuration',
               items: [
                 {
@@ -662,8 +664,6 @@ export function useNavData() {
                 },
               ],
             },
-          ],
-        },
       ];
     } else if (userInfo?.realm_access?.roles?.includes("GESTIONNAIRE_DE_PRECO")) {
       return [
@@ -818,18 +818,18 @@ export function useNavData() {
               path: paths.dashboard.admin.media.root,
               icon: ICONS.file,
             },
+          ],
+        },
+        {
+          subheader: 'Chatbot Configuration',
+          items: [
             {
-              subheader: 'Chatbot Configuration',
-              items: [
-                {
-                  title: 'Gestion Des Tickets',
-                  path: paths.dashboard.chatbot.ticket.root,
-                  icon: ICONS.mail,
-                  children: [
-                    { title: 'Liste Des Tickets', path: paths.dashboard.chatbot.ticket.root },
-                    { title : 'Voir Les Conversations', path: paths.dashboard.chatbot.ticket.conversations },
-                  ],
-                },
+              title: 'Gestion Des Tickets',
+              path: paths.dashboard.chatbot.ticket.root,
+              icon: ICONS.mail,
+              children: [
+                { title: 'Liste Des Tickets', path: paths.dashboard.chatbot.ticket.root },
+                { title : 'Voir Les Conversations', path: paths.dashboard.chatbot.ticket.conversations },
               ],
             },
           ],
@@ -979,18 +979,18 @@ export function useNavData() {
               path: paths.dashboard.admin.media.root,
               icon: ICONS.file,
             },
+          ],
+        },
+        {
+          subheader: 'Chatbot Configuration',
+          items: [
             {
-              subheader: 'Chatbot Configuration',
-              items: [
-                {
-                  title: 'Gestion Des Tickets',
-                  path: paths.dashboard.chatbot.ticket.root,
-                  icon: ICONS.mail,
-                  children: [
-                    { title: 'Liste Des Tickets', path: paths.dashboard.chatbot.ticket.root },
-                    { title : 'Voir Les Conversations', path: paths.dashboard.chatbot.ticket.conversations },
-                  ],
-                },
+              title: 'Gestion Des Tickets',
+              path: paths.dashboard.chatbot.ticket.root,
+              icon: ICONS.mail,
+              children: [
+                { title: 'Liste Des Tickets', path: paths.dashboard.chatbot.ticket.root },
+                { title : 'Voir Les Conversations', path: paths.dashboard.chatbot.ticket.conversations },
               ],
             },
           ],
-- 
GitLab