ajout mineur

This commit is contained in:
Mathis 2025-04-11 10:52:48 +02:00
parent 7cc5598fbf
commit 6eaa758d7c
3 changed files with 6 additions and 3 deletions

View File

@ -4,7 +4,7 @@ import { TriangleAlert,X } from "lucide-react";
function AlertInactive({affAlert,setAffAlert}) {
return (
(affAlert&&(
<div className="flex flex-col md:flex-row bg-slate-600 w-full md:w-1/2 lg:w-1/3 fixed top-20 right-4 rounded-lg p-4 md:p-5 items-center gap-4 md:gap-6 shadow-lg opacity-90">
<div className="flex flex-col md:flex-row bg-slate-600 w-full md:w-1/2 lg:w-1/3 fixed top-20 right-1 sm:right-4 rounded-lg p-4 md:p-5 items-center gap-4 md:gap-6 shadow-lg opacity-90">
<button onClick={()=>setAffAlert(false)}className="absolute top-2 right-2 text-white hover:text-gray-300">
<X/>
</button>
@ -13,7 +13,7 @@ function AlertInactive({affAlert,setAffAlert}) {
<p className="text-sm md:text-base text-white text-center md:text-left">
Cet objet peut être inactif à son manque de données. Vous pouvez le
rendre inactif en appuyant <a>ici</a>.
rendre inactif en changeant son status.
</p>
</div>
)));

View File

@ -90,7 +90,9 @@ function Header() {
</li>
<li className="sm:hidden">
<button
onClick={logout}
onClick={()=>{
logout();
setIsMenuOpen(false)}}
className="flex items-center gap-2 text-gray-600 hover:text-red-600"
>
<LogOut size={20} />

View File

@ -2,6 +2,7 @@ import React from "react";
import { Search, ArrowRight, RadioTower,Plus } from "lucide-react";
import { useEffect, useState } from "react";
import axios from "axios";
import { API_BASE_URL } from "../../config";
function ObjectManagement() {
const [searchQuery, setSearchQuery] = useState("");