From bb46f89c34bd210889810711b779b3185a5a0b07 Mon Sep 17 00:00:00 2001 From: Maxwell Austensen Date: Tue, 20 Feb 2024 10:13:15 -0500 Subject: [PATCH 1/2] remove legacy/new banner --- client/src/containers/App.tsx | 37 ----------------------------------- 1 file changed, 37 deletions(-) diff --git a/client/src/containers/App.tsx b/client/src/containers/App.tsx index d1658ffc1..7afb4bb6f 100644 --- a/client/src/containers/App.tsx +++ b/client/src/containers/App.tsx @@ -337,44 +337,8 @@ const AppBody = () => { ); }; -const WowzaBanner = withI18n()((props: withI18nProps) => { - const [isBannerOpen, setBannerVisibility] = useState(true); - const { pathname } = useLocation(); - const { i18n } = props; - const { about } = createWhoOwnsWhatRoutePaths(); - - return ( -
-
- {isLegacyPath(pathname) ? ( - - This is the old version of Who Owns What.{" "} - - Check out the new version here. - - - ) : ( - - This is the new version of Who Owns What. To view the old version{" "} - visit the About Page. - - )} -
- -
- ); -}); - const App = () => { const version = process.env.REACT_APP_VERSION; - const allowChangingPortfolioMethod = - process.env.REACT_APP_ENABLE_NEW_WOWZA_PORTFOLIO_MAPPING === "1"; const surveyId = process.env.REACT_APP_WOAU_SURVEY_ID; const deprecationModalEnabled = process.env.REACT_APP_DEPRECATION_MODAL_ENABLED; @@ -414,7 +378,6 @@ const App = () => { )}
- {allowChangingPortfolioMethod && } {deprecationModalEnabled && } From dafda4720484e12c2a0690f15e1637e2c9d5d6b8 Mon Sep 17 00:00:00 2001 From: Maxwell Austensen Date: Tue, 20 Feb 2024 10:24:21 -0500 Subject: [PATCH 2/2] remove unused import --- client/src/containers/App.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/client/src/containers/App.tsx b/client/src/containers/App.tsx index 7afb4bb6f..a4821bd2b 100644 --- a/client/src/containers/App.tsx +++ b/client/src/containers/App.tsx @@ -38,11 +38,7 @@ import { wowMachine } from "state-machine"; import { NotFoundPage } from "./NotFoundPage"; import widont from "widont"; import { Dropdown } from "components/Dropdown"; -import { - isLegacyPath, - ToggleLinkBetweenPortfolioMethods, - WowzaRedirectPage, -} from "components/WowzaToggle"; +import { isLegacyPath, WowzaRedirectPage } from "components/WowzaToggle"; import { logAmplitudeEvent } from "../components/Amplitude"; import { SliderButton } from "@typeform/embed-react"; import { StickyModal } from "components/StickyModal";