From d8b6d1a36ca9065ded04511b3fed5ceca0202491 Mon Sep 17 00:00:00 2001 From: Maxwell Austensen Date: Tue, 20 Feb 2024 11:01:15 -0500 Subject: [PATCH] remove "share" from nav --- client/src/containers/App.tsx | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/client/src/containers/App.tsx b/client/src/containers/App.tsx index d1658ffc1..7c42ad012 100644 --- a/client/src/containers/App.tsx +++ b/client/src/containers/App.tsx @@ -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"; @@ -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 = @@ -280,10 +277,6 @@ const Navbar = () => { {addFeatureCalloutWidget && } {getMainNavLinks(isLegacyPath(pathname))} - {/* eslint-disable-next-line jsx-a11y/anchor-is-valid */} - setEngageModalVisibility(true)}> - Share - {getAccountNavLinks(userContext.logout, pathname, !!userContext?.user?.email)} @@ -293,12 +286,6 @@ const Navbar = () => { {link} ))} -
  • - {/* eslint-disable-next-line jsx-a11y/anchor-is-valid */} - setEngageModalVisibility(true)}> - Share - -
  • @@ -311,12 +298,6 @@ const Navbar = () => { )} - setEngageModalVisibility(false)}> -
    - Share this page with your neighbors -
    - -
    ); };