From 70862290600eb9410342bcae30930c9ac77be80e Mon Sep 17 00:00:00 2001 From: xyntechx Date: Mon, 2 Oct 2023 19:12:17 -0700 Subject: [PATCH 1/2] Remove application banner and redirect --- frontend/src/Routes.tsx | 2 - frontend/src/components/Common/Banner.tsx | 23 -------- frontend/src/components/Common/Layout.tsx | 2 - .../src/components/Landing/LandingModal.tsx | 55 ------------------- frontend/src/views/Apply.tsx | 4 -- frontend/src/views/Landing.tsx | 2 - 6 files changed, 88 deletions(-) delete mode 100644 frontend/src/components/Common/Banner.tsx delete mode 100644 frontend/src/components/Landing/LandingModal.tsx delete mode 100644 frontend/src/views/Apply.tsx diff --git a/frontend/src/Routes.tsx b/frontend/src/Routes.tsx index 4778161f2..36d7d9f0d 100644 --- a/frontend/src/Routes.tsx +++ b/frontend/src/Routes.tsx @@ -20,7 +20,6 @@ const ViewSchedule = () => import('./app/Scheduler/ViewSchedule'); const PrivacyPolicy = () => import('./views/PrivacyPolicy'); const TermsOfService = () => import('./views/TermsOfService'); const RedirectLink = () => import('./views/RedirectLink'); -const Apply = () => import('./views/Apply'); function ScheduleRedirect() { const { scheduleId } = useParams(); @@ -50,7 +49,6 @@ const router = createBrowserRouter([ { path: '/legal/privacy', lazy: PrivacyPolicy }, { path: '/legal/terms', lazy: TermsOfService }, { path: '/redirect', lazy: RedirectLink }, - { path: '/apply', lazy: Apply } ] }, { diff --git a/frontend/src/components/Common/Banner.tsx b/frontend/src/components/Common/Banner.tsx deleted file mode 100644 index 61295a1f4..000000000 --- a/frontend/src/components/Common/Banner.tsx +++ /dev/null @@ -1,23 +0,0 @@ -import { useSelector, useDispatch } from 'react-redux'; -import { Button } from 'bt/custom'; -import { closeBanner } from '../../redux/common/actions'; - -import close from '../../assets/svg/common/close.svg'; -import { ReduxState } from 'redux/store'; - -export default function Banner() { - const { banner } = useSelector((state: ReduxState) => state.common); - const dispatch = useDispatch(); - - return banner ? ( -
-
-

Berkeleytime is looking for student designers and developers to join our team!

- -
- close dispatch(closeBanner())} /> -
- ) : null; -} diff --git a/frontend/src/components/Common/Layout.tsx b/frontend/src/components/Common/Layout.tsx index e67cb2b12..c4f80b807 100644 --- a/frontend/src/components/Common/Layout.tsx +++ b/frontend/src/components/Common/Layout.tsx @@ -1,7 +1,6 @@ import { Suspense, useEffect } from 'react'; import { Outlet, useLocation } from 'react-router-dom'; import ReactGA from 'react-ga'; -import Banner from './Banner'; import Navigation from './Navigation'; import BTLoader from './BTLoader'; import Footer from './Footer'; @@ -26,7 +25,6 @@ export default function RootLayout({ footer }: LayoutProps) { return ( <> - {footer &&