From f8ff85c865524e7756c7488d89979b2151dbd3c6 Mon Sep 17 00:00:00 2001 From: Mathis Date: Sun, 13 Apr 2025 19:11:33 +0200 Subject: [PATCH] =?UTF-8?q?responsivit=C3=A9=20de=20l'admin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Front-end/src/components/Header.jsx | 6 +++--- Front-end/src/pages/Admin/Dashboard.jsx | 5 ++--- Front-end/src/pages/Admin/sidebar.jsx | 2 +- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/Front-end/src/components/Header.jsx b/Front-end/src/components/Header.jsx index 623975d..5e99021 100644 --- a/Front-end/src/components/Header.jsx +++ b/Front-end/src/components/Header.jsx @@ -114,21 +114,21 @@ function Header() { setShowAdminDropdown(false)} + onClick={() => {setShowAdminDropdown(false);setIsMenuOpen(false);}} > Dashboard setShowAdminDropdown(false)} + onClick={() => {setShowAdminDropdown(false);setIsMenuOpen(false);}} > Gestion des Utilisateurs setShowAdminDropdown(false)} + onClick={() => {setShowAdminDropdown(false);setIsMenuOpen(false);}} > Gestion des Objets Connectés diff --git a/Front-end/src/pages/Admin/Dashboard.jsx b/Front-end/src/pages/Admin/Dashboard.jsx index 8c0d9c7..419e07e 100644 --- a/Front-end/src/pages/Admin/Dashboard.jsx +++ b/Front-end/src/pages/Admin/Dashboard.jsx @@ -1,6 +1,6 @@ import React, { useState, useEffect } from "react"; import Sidebar from "./sidebar.jsx"; -import { RadioTower, ArrowRight, BadgePlus, Settings } from "lucide-react"; +import { RadioTower,Minus, ArrowRight, BadgePlus, Settings } from "lucide-react"; import { API_BASE_URL } from "../../config.js"; import axios from "axios"; @@ -38,7 +38,6 @@ const initialWidgets = [ { id: 3, type: "reporting" }, { id: 4, type: "adminobjet" }, { id: 5, type: "objects" }, - { id: 6, type: "requestObject" }, ]; function Dashboard() { @@ -126,7 +125,7 @@ function Dashboard() { onClick={() => handleDeleteWidget(widget.id)} className="absolute top-2 right-2 bg-red-600 text-white rounded-full w-6 h-6 flex items-center justify-center" > - – + )} diff --git a/Front-end/src/pages/Admin/sidebar.jsx b/Front-end/src/pages/Admin/sidebar.jsx index 4265e63..b5e3ac7 100644 --- a/Front-end/src/pages/Admin/sidebar.jsx +++ b/Front-end/src/pages/Admin/sidebar.jsx @@ -5,7 +5,7 @@ function Sidebar({ isOpen, toggleSidebar }) { return (