Merge pull request 'fix: Corrigindo tipagem da função footerLinkToggle' (#4) from feature/development into main

Reviewed-on: #4
This commit is contained in:
José Carlos Lins 2022-12-31 17:25:24 +00:00
commit 6034f6a510

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) {