diff --git a/client/src/containers/App.tsx b/client/src/containers/App.tsx index d1658ffc1..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"; @@ -337,44 +333,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 +374,6 @@ const App = () => { )}
- {allowChangingPortfolioMethod && } {deprecationModalEnabled && }