From 1ecc12adbd9e00c941a21faac00d61722194168e Mon Sep 17 00:00:00 2001 From: Xavier Oliveira Date: Thu, 28 May 2026 16:42:36 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20fechar=20offcanvas=20ao=20clicar=20em=20?= =?UTF-8?q?link=20e=20corrigir=20navega=C3=A7=C3=A3o=20com=20NavLink?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/header/index.tsx | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/frontend-plataforma-tutoriais/src/components/header/index.tsx b/frontend-plataforma-tutoriais/src/components/header/index.tsx index 2702af8..5689edd 100644 --- a/frontend-plataforma-tutoriais/src/components/header/index.tsx +++ b/frontend-plataforma-tutoriais/src/components/header/index.tsx @@ -2,8 +2,8 @@ import API_URL from "../../config/api"; import styles from "./styles.module.css"; import { LuUser, LuMenu, LuSearch, LuLogOut, LuUsers, LuMail, LuGraduationCap, LuTvMinimalPlay, LuLayoutDashboard, LuCircleUser, LuPanelLeftClose, LuClock3, LuCalendar } from "react-icons/lu"; import { useEffect, useState } from "react"; -import { useNavigate, Link } from "react-router"; -import { Button, NavLink, Offcanvas } from "react-bootstrap"; +import { useNavigate, Link, NavLink } from "react-router"; +import { Button, Offcanvas } from "react-bootstrap"; import type { Workshop } from "../../types"; import type { Video } from "../../types"; import { CgSpinner } from "react-icons/cg"; @@ -135,8 +135,7 @@ export default function Header() { className={styles.logo} src="/src/assets/logo.png" alt="Logo" - style={imageSkeletonFadeStyle} - onLoad={onImageSkeletonLoad} + onClick={handleCloseMenu} /> @@ -147,21 +146,21 @@ export default function Header() { @@ -329,7 +328,7 @@ export default function Header() { className="dropdown-menu dropdown-menu-end" style={{ display: "block", zIndex: 2000, right: 0, top: "100%", marginTop: "0.25rem" }}>
  • A minha conta
  • -
  • Sair
  • +
  • Sair
  • )}