File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import React from "react" ;
22import { Link } from "gatsby" ;
33import { Container , Row , Col } from "../../../reusecore/Layout" ;
4- import { useLocation } from "@reach/router" ;
54import logo from "../../../assets/images/layer5/layer5-only/svg/layer5-light-bg.svg" ;
65import SocialLinksColor from "../../../components/SocialLinks-Color" ;
76import Button from "../../../reusecore/Button" ;
@@ -10,8 +9,7 @@ import bubblesElement from "./images/bubbles-element.svg";
109
1110const Footer = ( { location : locationProp } ) => {
1211 var currentYear = new Date ( ) . getFullYear ( ) ;
13- const routerLocation = useLocation ( ) ;
14- const pathname = locationProp ?. pathname || routerLocation ?. pathname || "/" ;
12+ const pathname = locationProp ?. pathname || ( typeof window !== "undefined" ? window . location . pathname : "/" ) ;
1513
1614 const getUrl = ( pathname ) => {
1715 // remove ".html" that results in live production build
You can’t perform that action at this time.
0 commit comments