Skip to content

Commit

Permalink
chore: rename community apps
Browse files Browse the repository at this point in the history
  • Loading branch information
w84april committed Dec 12, 2024
1 parent a38e3d7 commit 4644b7c
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion apps/common/icons/IconCommunity.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type {ReactElement} from 'react';

export function IconCommunity(props: React.SVGProps<SVGSVGElement>): ReactElement {
export function IconYearnApps(props: React.SVGProps<SVGSVGElement>): ReactElement {
return (
<svg
{...props}
Expand Down
16 changes: 8 additions & 8 deletions apps/common/utils/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const VAULTS_APPS: TApp[] = [
}
];

export const COMMUNITY_APPS: TApp[] = [
export const YEARN_APPS: TApp[] = [
{
name: 'yETH',
description: 'A basket of LSTs in a single token.',
Expand Down Expand Up @@ -212,7 +212,7 @@ export const FEATURED_APPS = [
}
];

export const ALL_APPS = [...FEATURED_APPS, ...VAULTS_APPS, ...COMMUNITY_APPS, ...YEARN_X_APPS, ...INTEGRATIONS_APPS];
export const ALL_APPS = [...FEATURED_APPS, ...VAULTS_APPS, ...YEARN_APPS, ...YEARN_X_APPS, ...INTEGRATIONS_APPS];

export const CATEGORIES_DICT = {
'featured-apps': {
Expand All @@ -229,12 +229,12 @@ export const CATEGORIES_DICT = {
catrgorySlug: 'vaults',
apps: VAULTS_APPS
},
'community-apps': {
categoryName: 'Community Apps',
'yearn-apps': {
categoryName: 'Yearn Apps',
categoryDescription:
'Yearn is a decentralized suite of products helping individuals, DAOs, and other protocols earn yield on their digital assets.',
catrgorySlug: 'community-apps',
apps: COMMUNITY_APPS
catrgorySlug: 'yearn-apps',
apps: YEARN_APPS
},
'yearn-x': {
categoryName: 'Yearn X Projects',
Expand Down Expand Up @@ -266,7 +266,7 @@ export const LANDING_SIDEBAR_LINKS = [
export const MENU_TABS = [
{title: 'Home', route: 'apps'},
{title: 'Vaults', route: 'vaults'},
{title: 'Community Apps', route: 'community-apps'},
{title: 'Yearn Apps', route: 'yearn-apps'},
{title: 'Yearn X Projects', route: 'yearn-x'},
{title: 'Integrations', route: 'integrations'}
// {title: 'About', route: 'about'}
Expand All @@ -283,7 +283,7 @@ export const iconsDict = {
apps: <IconYearn />,
about: <IconAbout />,
vaults: <IconVaults />,
'community-apps': <IconFrontends />,
'yearn-apps': <IconFrontends />,
'yearn-x': <IconYearnXApps />,
integrations: <IconIntegrations />
};
8 changes: 4 additions & 4 deletions apps/landing/components/sections/WaysToEarn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ export function WaysToEarn(): ReactElement {
</Link>
<div className={'col-span-12 row-span-3 md:col-span-5 md:row-span-6'}>
<EarnCard
title={'COMMUNITY APPS.'}
title={'YEARN APPS.'}
info={'Apps built on Yearn vaults by contributors and the wider community!'}
logoSrc={'/landing/community-logo.png'}
href={'/apps/community-apps'}
hoverLogoSrc={'/landing/community-hover.png'}
logoSrc={'/landing/yearn-apps-logo.png'}
href={'/apps/yearn-apps'}
hoverLogoSrc={'/landing/yearn-apps-hover.png'}
/>
</div>
<div className={'col-span-12 row-span-3 md:col-span-5 md:row-span-6'}>
Expand Down
8 changes: 4 additions & 4 deletions pages/apps/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {PromoPoster} from '@common/components/PromoPoster';
import {useSearch} from '@common/contexts/useSearch';
import {LogoDiscord} from '@common/icons/LogoDiscord';
import {LogoTwitter} from '@common/icons/LogoTwitter';
import {COMMUNITY_APPS, FEATURED_APPS, INTEGRATIONS_APPS, VAULTS_APPS, YEARN_X_APPS} from '@common/utils/constants';
import {FEATURED_APPS, INTEGRATIONS_APPS, VAULTS_APPS, YEARN_APPS, YEARN_X_APPS} from '@common/utils/constants';

export default function Home(): ReactElement {
const router = useRouter();
Expand Down Expand Up @@ -63,9 +63,9 @@ export default function Home(): ReactElement {
apps={VAULTS_APPS}
/>
<CategorySection
title={'Community Apps'}
onExpandClick={async () => router.push('/apps/community-apps')}
apps={COMMUNITY_APPS}
title={'Yearn Apps'}
onExpandClick={async () => router.push('/apps/yearn-apps')}
apps={YEARN_APPS}
/>
<CategorySection
title={'Yearn X Projects'}
Expand Down
File renamed without changes
File renamed without changes

0 comments on commit 4644b7c

Please sign in to comment.