fix: Corrigindo tipagem da função footerLinkToggle

This commit is contained in:
José Carlos Lins 2022-12-31 14:23:58 -03:00
parent 1edd2c2f03
commit 5a55c84ea4

View File

@ -20,8 +20,8 @@ export default function FooterTop() {
faleConosco: false,
});
const footerLinkToggle = (e: any) => {
const textH2OnClick = e.target.textContent;
const footerLinkToggle = (e: React.MouseEvent<HTMLHeadingElement>) => {
const textH2OnClick = e.currentTarget.textContent;
if (window.screen.width <= 1024) {
if (textH2OnClick === "Institucional" && !openList.institucional) {