We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dffc5da commit 192cebaCopy full SHA for 192ceba
src/components/Footer/index.jsx
@@ -8,10 +8,18 @@ const _t = id => <FormattedMessage id={id} />;
8
9
export class Footer extends Component {
10
11
-
12
render() {
13
const locale = getLocale();
14
const { style } = this.props;
+
15
+ const pathname = typeof window !== 'undefined' ? window.location.pathname : '';
16
17
+ const isHomePage = pathname === `/${locale}` || pathname === `/${locale}/` || pathname === `/`;
18
19
+ if (!isHomePage) {
20
+ return null;
21
+ }
22
23
return (
24
<footer className="footer" style={{ ...style, zIndex: 10, overflow: 'hidden' }}>
25
<div className="footer-circle" />
0 commit comments