Skip to content

Commit

Permalink
chore: export ybal
Browse files Browse the repository at this point in the history
  • Loading branch information
Majorfi committed Jan 12, 2024
1 parent 2a4e291 commit b3b569b
Show file tree
Hide file tree
Showing 28 changed files with 4 additions and 4,195 deletions.
2 changes: 0 additions & 2 deletions apps/common/components/AppHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {cl} from '@yearn-finance/web-lib/utils/cl';
import {useMenu} from '@common/contexts/useMenu';
import {useCurrentApp} from '@common/hooks/useCurrentApp';
import {LogoYearn} from '@common/icons/LogoYearn';
import {YBalHeader} from '@yBal/components/header/YBalHeader';
import {YBribeHeader} from '@yBribe/components/header/YBribeHeader';
import {YCrvHeader} from '@yCRV/components/header/YCrvHeader';

Expand All @@ -28,7 +27,6 @@ function Logo(): ReactElement {
return (
<>
<YCrvHeader pathname={pathname} />
<YBalHeader pathname={pathname} />
<VaultsHeader pathname={pathname} />
<VeYfiHeader pathname={pathname} />
<YBribeHeader pathname={pathname} />
Expand Down
23 changes: 1 addition & 22 deletions apps/common/components/Apps.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
import vaultsManifest from 'public/apps/vaults-manifest.json';
import veyfiManifest from 'public/apps/veyfi-manifest.json';
import yBalManifest from 'public/apps/ybal-manifest.json';
import ybribeManifest from 'public/apps/ybribe-manifest.json';
import ycrvManifest from 'public/apps/ycrv-manifest.json';
import {VAULTS_MENU} from '@vaults/constants/menu';
import {VAULTS_V3_MENU} from '@vaults-v3/constants/menu';
import {VEYFI_MENU} from '@veYFI/constants/menu';
import {YBAL_TOKEN_ADDRESS, YCRV_TOKEN_ADDRESS} from '@yearn-finance/web-lib/utils/constants';
import {YCRV_TOKEN_ADDRESS} from '@yearn-finance/web-lib/utils/constants';
import {ImageWithFallback} from '@common/components/ImageWithFallback';
import {LogoYearn} from '@common/icons/LogoYearn';
import {YBAL_MENU} from '@yBal/constants/menu';
import {YBRIBE_MENU} from '@yBribe/constants/menu';
import {YCRV_MENU} from '@yCRV/constants/menu';

Expand All @@ -21,7 +19,6 @@ export enum AppName {
VAULTSV3 = 'V3',
VAULTS = 'Vaults',
YCRV = 'yCRV',
YBAL = 'yBal',
VEYFI = 'veYFI',
YBRIBE = 'yBribe',
YETH = 'yETH',
Expand Down Expand Up @@ -95,24 +92,6 @@ export const APPS: {[key in AppName]: TApp} = {
/>
)
},
yBal: {
name: AppName.YBAL,
href: '/ybal',
menu: YBAL_MENU,
manifest: yBalManifest,
isDisabled: true,
icon: (
<ImageWithFallback
alt={'yBal'}
width={64}
height={64}
className={'h-8 w-8'}
src={`${process.env.BASE_YEARN_ASSETS_URI}/1/${YBAL_TOKEN_ADDRESS}/logo-128.png`}
loading={'eager'}
priority
/>
)
},
yETH: {
name: AppName.YETH,
href: 'https://yeth.yearn.fi',
Expand Down
5 changes: 0 additions & 5 deletions apps/common/hooks/useCurrentApp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {VeYfiHeader} from 'apps/veyfi/components/header/VeYfiHeader';
import homeManifest from 'public/manifest.json';
import {VaultsHeader} from '@vaults/components/header/VaultsHeader';
import {AppName, APPS} from '@common/components/Apps';
import {YBalHeader} from '@yBal/components/header/YBalHeader';
import {YBribeHeader} from '@yBribe/components/header/YBribeHeader';
import {YCrvHeader} from '@yCRV/components/header/YCrvHeader';

Expand Down Expand Up @@ -39,10 +38,6 @@ export function useCurrentApp({pathname}: NextRouter): TCurrentApp {
...APPS[AppName.YCRV],
header: <YCrvHeader pathname={pathname} />
},
'/ybal': {
...APPS[AppName.YBAL],
header: <YBalHeader pathname={pathname} />
},
'/veyfi': {
...APPS[AppName.VEYFI],
header: <VeYfiHeader pathname={pathname} />
Expand Down
31 changes: 0 additions & 31 deletions apps/ybal/Wrapper.tsx

This file was deleted.

Loading

0 comments on commit b3b569b

Please sign in to comment.