Skip to content

Commit a61bad1

Browse files
committed
remove devconnect banner on /apps page
1 parent 0cf2f8c commit a61bad1

File tree

4 files changed

+1
-141
lines changed

4 files changed

+1
-141
lines changed

app/[locale]/apps/_components/DevconnectBanner.tsx

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

app/[locale]/apps/page.tsx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ import I18nProvider from "@/components/I18nProvider"
1313
import MainArticle from "@/components/MainArticle"
1414
import SubpageCard from "@/components/SubpageCard"
1515

16-
import {
17-
getDevconnectApps,
18-
getDiscoverApps,
19-
getHighlightedApps,
20-
} from "@/lib/utils/apps"
16+
import { getDiscoverApps, getHighlightedApps } from "@/lib/utils/apps"
2117
import { getAppPageContributorInfo } from "@/lib/utils/contributors"
2218
import { dataLoader } from "@/lib/utils/data/dataLoader"
2319
import { getMetadata } from "@/lib/utils/metadata"
@@ -30,7 +26,6 @@ import { BASE_TIME_UNIT } from "@/lib/constants"
3026
import AppCard from "./_components/AppCard"
3127
import AppsHighlight from "./_components/AppsHighlight"
3228
import CommunityPicks from "./_components/CommunityPicks"
33-
import DevconnectBanner from "./_components/DevconnectBanner"
3429
import SuggestAnApp from "./_components/SuggestAnApp"
3530
import TopApps from "./_components/TopApps"
3631
import AppsJsonLD from "./page-jsonld"
@@ -62,9 +57,6 @@ const Page = async ({ params }: { params: PageParams }) => {
6257
// Get 6 random staff pick apps
6358
const discoverApps = getDiscoverApps(appsData, 6)
6459

65-
// get devconnect apps
66-
const devconnectApps = getDevconnectApps(appsData)
67-
6860
// Get translations
6961
const t = await getTranslations({ locale, namespace: "page-apps" })
7062

@@ -104,10 +96,6 @@ const Page = async ({ params }: { params: PageParams }) => {
10496
<AppsHighlight apps={highlightedApps} matomoCategory="apps" />
10597
</div>
10698

107-
<div className="flex flex-col gap-4 px-4 md:px-8">
108-
<DevconnectBanner apps={devconnectApps} />
109-
</div>
110-
11199
<div className="flex flex-col gap-4 px-4 md:px-8">
112100
<h2>{t("page-apps-discover-title")}</h2>
113101
<div className="grid grid-cols-1 gap-7 md:grid-cols-2 lg:grid-cols-3">

src/intl/en/page-index.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,6 @@
120120
"page-index-values-open-legacy-content-0": "Companies protect their intellectual property and don’t share. No one outside the company can see how things work, fix problems, or make improvements. It's hard for people to create new tools or customize.",
121121
"page-index-values-open-ethereum-label": "Open to all",
122122
"page-index-values-open-ethereum-content-0": "Ethereum is public to all. Anyone can see, use, and improve the code, making it better for everyone.",
123-
"page-index-devconnect-banner-join-the-biggest-ethereum-event-of-the-year": "Join the biggest Ethereum event of the year",
124-
"page-index-devconnect-banner-get-tickets": "Get tickets",
125123
"page-index-fusaka-network-upgrade": "Network upgrade",
126124
"page-index-fusaka-description": "For a faster, safer, and more user-friendly Ethereum network |",
127125
"page-index-fusaka-read-more": "Read more",

src/lib/utils/apps.ts

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,6 @@ export const getDiscoverApps = (
3232
return count ? discoverApps.slice(0, count) : discoverApps
3333
}
3434

35-
export const getDevconnectApps = (appsData: Record<AppCategory, AppData[]>) => {
36-
const devconnectApps = Object.values(appsData)
37-
.flatMap((categoryDapps) => categoryDapps)
38-
.filter((app) => app.devconnect === "true")
39-
return devconnectApps
40-
}
41-
4235
export const APP_TAG_VARIANTS: Record<AppCategoryEnum, TagProps["status"]> = {
4336
[AppCategoryEnum.DEFI]: "tag",
4437
[AppCategoryEnum.COLLECTIBLE]: "success",

0 commit comments

Comments
 (0)