Skip to content

Commit

Permalink
Merge pull request #10938 from ethereum/removeTranslatathonBanner
Browse files Browse the repository at this point in the history
remove translatathon banner
  • Loading branch information
corwintines authored Aug 15, 2023
2 parents 97febb1 + 517c387 commit e1faa7a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 28 deletions.
22 changes: 0 additions & 22 deletions src/components/Banners/TranslatathonBanner.tsx

This file was deleted.

6 changes: 0 additions & 6 deletions src/components/Layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import TranslationBanner from "./TranslationBanner"
import TranslationBannerLegal from "./TranslationBannerLegal"
import FeedbackWidget from "./FeedbackWidget"
import { SkipLink } from "./SkipLink"
import TranslatathonBanner from "./Banners/TranslatathonBanner"

import { lightTheme as oldTheme } from "../theme"

Expand Down Expand Up @@ -76,10 +75,6 @@ const Layout: React.FC<IProps> = ({
!isTranslationBannerIgnored

const strippedPathname = path.replace(/^\/[a-z]{2,3}(-[a-z]{2})?\//, "/")
const shouldShowTranslatathonBanner =
strippedPathname === "/community/get-involved/" ||
strippedPathname === "/" ||
strippedPathname === "/contributing/translation-program/"

return (
<ApolloProvider client={client}>
Expand Down Expand Up @@ -107,7 +102,6 @@ const Layout: React.FC<IProps> = ({
>
<Nav path={path} />
{shouldShowSideNav && <SideNavMobile path={path} />}
{shouldShowTranslatathonBanner && <TranslatathonBanner />}
<Flex
flexDirection={{ base: "column", lg: "row" }}
id="main-content"
Expand Down

0 comments on commit e1faa7a

Please sign in to comment.