diff --git a/frontend/src/components/Footer.js b/frontend/src/components/Footer.js index 061baf3c..3171d252 100644 --- a/frontend/src/components/Footer.js +++ b/frontend/src/components/Footer.js @@ -21,6 +21,7 @@ import { import moment from "moment"; import { AWS_ASSETS_PATH } from "../core/constants"; import UIContext from "../core/providers/UIProvider/context"; +import AnalyticsContext from "../core/providers/AnalyticsProvider/context"; const LINKS_SIZES = { fontWeight: "300", @@ -36,13 +37,16 @@ const ListHeader = ({ children }) => { }; const SocialButton = ({ children, label, href }) => { + const { buttonReport } = useContext(AnalyticsContext); return ( { + buttonReport(label, "footer", "landing"); + window.open(href); + }} display={"inline-flex"} alignItems={"center"} justifyContent={"center"} @@ -66,7 +70,6 @@ const Footer = () => { borderTop="1px" borderColor="white" px="7%" - // maxW="1238px" mx="auto" > @@ -91,7 +94,8 @@ const Footer = () => { - © {moment().year()} Moonstream.to All rights reserved + © {moment().year()} Moonstream.to + All rights reserved )} @@ -173,7 +177,7 @@ const Footer = () => { {ui.isMobileView && ( - © {moment().year()} Moonstream.to All rights reserved + © {moment().year()} Moonstream.to All rights reserved )}