Skip to content

Commit

Permalink
removed setactivation to avoid rerenders
Browse files Browse the repository at this point in the history
  • Loading branch information
OchiengPaul442 committed Oct 5, 2024
1 parent 8e3842d commit 295c2a8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion website/frontend/src/pages/Legal/AirQo_Data.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ const AirQoData = () => {
return () => {
window.removeEventListener('scroll', handleScroll);
};
}, [sections, activeSection, setActiveSection]);
}, [sections, activeSection]);

return (
<div className="airqo-data">
Expand Down
2 changes: 1 addition & 1 deletion website/frontend/src/pages/Legal/AirQo_Payments.js
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ const AirQo_Payments = () => {
return () => {
window.removeEventListener('scroll', handleScroll);
};
}, [sections, activeSection, setActiveSection]);
}, [sections, activeSection]);

return (
<div className="airqo-data">
Expand Down
2 changes: 1 addition & 1 deletion website/frontend/src/pages/Legal/PrivacyPolicy.js
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ const PrivacyPolicy = () => {
return () => {
window.removeEventListener('scroll', handleScroll);
};
}, [sections, activeSection, setActiveSection]);
}, [sections, activeSection]);

return (
<div className="airqo-data">
Expand Down
2 changes: 1 addition & 1 deletion website/frontend/src/pages/Legal/TermsOfService.js
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ const TermsOfService = () => {
return () => {
window.removeEventListener('scroll', handleScroll);
};
}, [sections, activeSection, setActiveSection]);
}, [sections, activeSection]);

return (
<div className="airqo-data">
Expand Down

0 comments on commit 295c2a8

Please sign in to comment.