forked from M3-Academy/desafio-react-e-typescript
fix: Corrigindo tipagem da função footerLinkToggle #4
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user