diff --git a/frontend/src/components/header.tsx b/frontend/src/components/header.tsx index 65e192c..f104f74 100644 --- a/frontend/src/components/header.tsx +++ b/frontend/src/components/header.tsx @@ -1,5 +1,5 @@ -import { Layout, Menu, Avatar, Spin } from "antd" +import { Layout, Menu, Avatar, Spin, Tooltip } from "antd" import { FileDoneOutlined, FolderOpenOutlined, StarOutlined, PlusCircleOutlined, UserOutlined, LogoutOutlined, DashboardOutlined, UnorderedListOutlined } from '@ant-design/icons'; import { useUser } from "@/providers/userProvider"; import { useState, useEffect } from "react"; @@ -7,6 +7,9 @@ import useLogout from "@/utils/logout"; import { usePathname } from "next/navigation"; import Link from "next/link"; const { Header: AntdHeader } = Layout; +import Image from 'next/image'; +import logo from "/public/logo.png" +const { Sider } = Layout; export default function Header({ collapsed, setCollapsed }: { collapsed: Boolean, setCollapsed: (collapsed: boolean) => void }) { const { user } = useUser(); @@ -103,7 +106,7 @@ export default function Header({ collapsed, setCollapsed }: { collapsed: Boolean [headerItems[headerItems.length - 0], headerItems[headerItems.length - 1]]; return ( - + {collapsed && ( +
+ + Logo du ministère des solidarités et de la santé + +
)}