Skip to content

Commit

Permalink
remove "share" from nav (#851)
Browse files Browse the repository at this point in the history
Remove the "share" button from WOW nav header.
  • Loading branch information
austensen authored Feb 27, 2024
1 parent 19d2f6d commit 985ff15
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions client/src/containers/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import { Trans, t } from "@lingui/macro";
import "styles/App.css";

import ScrollToTop from "../components/ScrollToTop";
import SocialShare from "../components/SocialShare";
import Modal from "../components/Modal";
import FeatureCalloutWidget from "../components/FeatureCalloutWidget";
import classnames from "classnames";
import browser from "util/browser";
Expand Down Expand Up @@ -254,7 +252,6 @@ const getMainNavLinks = (isLegacyPath?: boolean) => {

const Navbar = () => {
const { pathname } = useLocation();
const [isEngageModalVisible, setEngageModalVisibility] = useState(false);
const addFeatureCalloutWidget = process.env.REACT_APP_ENABLE_FEATURE_CALLOUT_WIDGET === "1";
const isDemoSite = process.env.REACT_APP_DEMO_SITE === "1";
const allowChangingPortfolioMethod =
Expand All @@ -280,10 +277,6 @@ const Navbar = () => {
{addFeatureCalloutWidget && <FeatureCalloutWidget />}
<span className="hide-lg">
{getMainNavLinks(isLegacyPath(pathname))}
{/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
<a href="#" onClick={() => setEngageModalVisibility(true)}>
<Trans>Share</Trans>
</a>
<LocaleSwitcher />
{getAccountNavLinks(userContext.logout, pathname, !!userContext?.user?.email)}
</span>
Expand All @@ -293,12 +286,6 @@ const Navbar = () => {
{link}
</li>
))}
<li className="menu-item">
{/* eslint-disable-next-line jsx-a11y/anchor-is-valid */}
<a href="#" onClick={() => setEngageModalVisibility(true)}>
<Trans>Share</Trans>
</a>
</li>
<li className="menu-item">
<LocaleSwitcherWithFullLanguageName />
</li>
Expand All @@ -311,12 +298,6 @@ const Navbar = () => {
)}
</Dropdown>
</nav>
<Modal showModal={isEngageModalVisible} onClose={() => setEngageModalVisibility(false)}>
<h5 className="first-header">
<Trans>Share this page with your neighbors</Trans>
</h5>
<SocialShare location="share-modal" />
</Modal>
</div>
);
};
Expand Down

0 comments on commit 985ff15

Please sign in to comment.