fix: Corrigindo tipagem da função footerLinkToggle #4

Merged
josecarloslins merged 1 commits from feature/development into main 2022-12-31 17:25:24 +00:00

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