Skip to content

Commit e1faa7a

Browse files
authored
Merge pull request #10938 from ethereum/removeTranslatathonBanner
remove translatathon banner
2 parents 97febb1 + 517c387 commit e1faa7a

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

src/components/Banners/TranslatathonBanner.tsx

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/components/Layout.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ import TranslationBanner from "./TranslationBanner"
1010
import TranslationBannerLegal from "./TranslationBannerLegal"
1111
import FeedbackWidget from "./FeedbackWidget"
1212
import { SkipLink } from "./SkipLink"
13-
import TranslatathonBanner from "./Banners/TranslatathonBanner"
1413

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

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

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

8479
return (
8580
<ApolloProvider client={client}>
@@ -107,7 +102,6 @@ const Layout: React.FC<IProps> = ({
107102
>
108103
<Nav path={path} />
109104
{shouldShowSideNav && <SideNavMobile path={path} />}
110-
{shouldShowTranslatathonBanner && <TranslatathonBanner />}
111105
<Flex
112106
flexDirection={{ base: "column", lg: "row" }}
113107
id="main-content"

0 commit comments

Comments
 (0)