Skip to content

Commit 9b260e5

Browse files
committed
footer mixpanel report
1 parent 470b5df commit 9b260e5

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

frontend/src/components/Footer.js

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import {
2121
import moment from "moment";
2222
import { AWS_ASSETS_PATH } from "../core/constants";
2323
import UIContext from "../core/providers/UIProvider/context";
24+
import AnalyticsContext from "../core/providers/AnalyticsProvider/context";
2425

2526
const LINKS_SIZES = {
2627
fontWeight: "300",
@@ -36,13 +37,16 @@ const ListHeader = ({ children }) => {
3637
};
3738

3839
const 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&nbsp;rights&nbsp;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&nbsp;rights&nbsp;reserved
177181
</Text>
178182
)}
179183
</Flex>

0 commit comments

Comments
 (0)