diff --git a/landing/footer.react.js b/landing/footer.react.js
index 68af5cf4a..18a700c01 100644
--- a/landing/footer.react.js
+++ b/landing/footer.react.js
@@ -1,67 +1,58 @@
// @flow
import { faExternalLinkSquareAlt } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import * as React from 'react';
import { NavLink } from 'react-router-dom';
-import { isDev } from 'lib/utils/dev-utils';
-
import css from './footer.css';
import SubscriptionForm from './subscription-form.react';
const navLinkProps = {
activeStyle: {
color: 'white',
fontWeight: '500',
},
};
function Footer(): React.Node {
- let teamLink;
- if (isDev) {
- teamLink = (
-
- Team
-
- );
- }
-
return (
);
}
export default Footer;
diff --git a/landing/landing.react.js b/landing/landing.react.js
index 507a08e9d..a13331038 100644
--- a/landing/landing.react.js
+++ b/landing/landing.react.js
@@ -1,67 +1,65 @@
// @flow
import * as React from 'react';
import { useRouteMatch } from 'react-router-dom';
-import { isDev } from 'lib/utils/dev-utils';
-
import AppLanding from './app-landing.react';
import Footer from './footer.react';
import Header from './header.react';
import Keyservers from './keyservers.react';
import Privacy from './privacy.react';
import QR from './qr.react';
import Support from './support.react';
import Team from './team.react';
import Terms from './terms.react';
import useScrollToTopOnNavigate from './use-scroll-to-top-on-navigate.react';
import './reset.css';
import './global.css';
function Landing(): React.Node {
useScrollToTopOnNavigate();
const onPrivacy = useRouteMatch({ path: '/privacy' });
const onTerms = useRouteMatch({ path: '/terms' });
const onSupport = useRouteMatch({ path: '/support' });
const onKeyservers = useRouteMatch({ path: '/keyservers' });
const onQR = useRouteMatch({ path: '/qr' });
const onTeam = useRouteMatch({ path: '/team' });
const activePage = React.useMemo(() => {
if (onPrivacy) {
return ;
} else if (onTerms) {
return ;
} else if (onSupport) {
return ;
} else if (onKeyservers) {
return ;
} else if (onQR) {
return ;
- } else if (isDev && onTeam) {
+ } else if (onTeam) {
return ;
} else {
return ;
}
}, [onKeyservers, onPrivacy, onSupport, onTerms, onTeam, onQR]);
let header;
if (!onQR) {
header = ;
}
let footer;
if (!onQR) {
footer = ;
}
return (
<>
{header}
{activePage}
{footer}
>
);
}
export default Landing;