@@ -21,6 +21,7 @@ import {
2121import moment from "moment" ;
2222import { AWS_ASSETS_PATH } from "../core/constants" ;
2323import UIContext from "../core/providers/UIProvider/context" ;
24+ import AnalyticsContext from "../core/providers/AnalyticsProvider/context" ;
2425
2526const LINKS_SIZES = {
2627 fontWeight : "300" ,
@@ -36,13 +37,16 @@ const ListHeader = ({ children }) => {
3637} ;
3738
3839const SocialButton = ( { children, label, href } ) => {
40+ const { buttonReport } = useContext ( AnalyticsContext ) ;
3941 return (
4042 < chakra . button
4143 bg = { useColorModeValue ( "blackAlpha.100" , "whiteAlpha.100" ) }
4244 rounded = { "full" }
4345 cursor = { "pointer" }
44- as = { "a" }
45- href = { href }
46+ onClick = { ( ) => {
47+ buttonReport ( label , "footer" , "landing" ) ;
48+ window . open ( href ) ;
49+ } }
4650 display = { "inline-flex" }
4751 alignItems = { "center" }
4852 justifyContent = { "center" }
@@ -66,7 +70,6 @@ const Footer = () => {
6670 borderTop = "1px"
6771 borderColor = "white"
6872 px = "7%"
69- // maxW="1238px"
7073 mx = "auto"
7174 >
7275 < Container as = { Stack } py = { 10 } px = "0px" maxW = "1238px" >
@@ -91,7 +94,8 @@ const Footer = () => {
9194 </ Link >
9295 </ Flex >
9396 < Text fontSize = { "sm" } >
94- © { moment ( ) . year ( ) } Moonstream.to All rights reserved
97+ © { moment ( ) . year ( ) } Moonstream.to
98+ All rights reserved
9599 </ Text >
96100 </ >
97101 ) }
@@ -173,7 +177,7 @@ const Footer = () => {
173177 </ Flex >
174178 { ui . isMobileView && (
175179 < Text fontSize = { "sm" } >
176- © { moment ( ) . year ( ) } Moonstream.to All rights reserved
180+ © { moment ( ) . year ( ) } Moonstream.to All rights reserved
177181 </ Text >
178182 ) }
179183 </ Flex >
0 commit comments