Skip to content

Commit 00d8f37

Browse files
committed
fix: logo and banner
1 parent bdfbdff commit 00d8f37

File tree

2 files changed

+96
-97
lines changed

2 files changed

+96
-97
lines changed

public/icons/markets/horizon.svg

Lines changed: 1 addition & 1 deletion
Loading

src/layouts/MainLayout.tsx

Lines changed: 95 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Box } from '@mui/material';
33
// import { useRouter } from 'next/router';
44
import React, { ReactNode } from 'react';
55
import AnalyticsConsent from 'src/components/Analytics/AnalyticsConsent';
6-
import { useModalContext } from 'src/hooks/useModal';
6+
// import { useModalContext } from 'src/hooks/useModal';
77
import { FeedbackModal } from 'src/layouts/FeedbackDialog';
88
// import { useRootStore } from 'src/store/root';
99
// import { CustomMarket } from 'src/ui-config/marketsConfig';
@@ -14,114 +14,113 @@ import { AppFooter } from './AppFooter';
1414
import { AppHeader } from './AppHeader';
1515
import TopBarNotify from './TopBarNotify';
1616

17-
const getCampaignConfigs = (
17+
const getCampaignConfigs = () =>
1818
// openSwitch: (token?: string, chainId?: number) => void,
19-
openSwap: (underlyingAsset: string) => void
19+
// openSwap: (underlyingAsset: string) => void
2020
// openMarket: (market: CustomMarket) => void
21-
) => ({
22-
[ChainId.base]: {
23-
notifyText: 'A new incentives campaign is live on the Base market',
24-
buttonText: 'Explore Base',
25-
buttonAction: {
26-
type: 'route' as const,
27-
value: '/markets/?marketName=proto_base_v3',
21+
({
22+
[ChainId.base]: {
23+
notifyText: 'A new incentives campaign is live on the Base market',
24+
buttonText: 'Explore Base',
25+
buttonAction: {
26+
type: 'route' as const,
27+
value: '/markets/?marketName=proto_base_v3',
28+
},
29+
bannerVersion: 'base-incentives-v1',
30+
icon: '/icons/networks/base.svg',
2831
},
29-
bannerVersion: 'base-incentives-v1',
30-
icon: '/icons/networks/base.svg',
31-
},
3232

33-
// [ChainId.sonic]: {
34-
// notifyText: 'Swaps are now live on Sonic',
35-
// buttonText: 'Swap Now',
36-
// buttonAction: {
37-
// type: 'function' as const,
38-
// value: () => openSwitch('', ChainId.sonic),
39-
// },
40-
// bannerVersion: 'sonic-incentives-v1',
41-
// icon: '/icons/networks/sonic.svg',
42-
// },
33+
// [ChainId.sonic]: {
34+
// notifyText: 'Swaps are now live on Sonic',
35+
// buttonText: 'Swap Now',
36+
// buttonAction: {
37+
// type: 'function' as const,
38+
// value: () => openSwitch('', ChainId.sonic),
39+
// },
40+
// bannerVersion: 'sonic-incentives-v1',
41+
// icon: '/icons/networks/sonic.svg',
42+
// },
4343

44-
[ChainId.mainnet]: {
45-
notifyText:
46-
'If you hold Pendle PT tokens at maturity, you can now swap your collateral to a new maturity',
47-
buttonText: 'Get Started',
48-
buttonAction: {
49-
type: 'function' as const,
50-
value: () => openSwap('0x3b3fb9c57858ef816833dc91565efcd85d96f634'),
44+
[ChainId.mainnet]: {
45+
notifyText: 'Horizon, the RWA market by Aave Labs, is now live.',
46+
buttonText: 'Get Started',
47+
buttonAction: {
48+
type: 'route' as const,
49+
value: '/markets/?marketName=proto_horizon_v3',
50+
},
51+
bannerVersion: 'horizon-market-v0',
52+
icon: '/icons/markets/horizon.svg',
5153
},
52-
bannerVersion: 'ethereum-swap-v1',
53-
// icon: '/icons/networks/ethereum.svg',
54-
},
5554

56-
// [ChainId.polygon]: {
57-
// notifyText: 'Swap tokens directly in the Aave App',
58-
// buttonText: 'Swap Now',
59-
// buttonAction: {
60-
// type: 'function' as const,
61-
// value: () => openSwitch('', ChainId.polygon),
62-
// },
63-
// bannerVersion: 'polygon-swap-v1',
64-
// icon: '/icons/networks/polygon.svg',
65-
// },
55+
// [ChainId.polygon]: {
56+
// notifyText: 'Swap tokens directly in the Aave App',
57+
// buttonText: 'Swap Now',
58+
// buttonAction: {
59+
// type: 'function' as const,
60+
// value: () => openSwitch('', ChainId.polygon),
61+
// },
62+
// bannerVersion: 'polygon-swap-v1',
63+
// icon: '/icons/networks/polygon.svg',
64+
// },
6665

67-
// [ChainId.avalanche]: {
68-
// notifyText: 'Swap tokens directly in the Aave App',
69-
// buttonText: 'Swap Now',
70-
// buttonAction: {
71-
// type: 'function' as const,
72-
// value: () => openSwitch('', ChainId.avalanche),
73-
// },
74-
// bannerVersion: 'avalanche-swap-v1',
75-
// icon: '/icons/networks/avalanche.svg',
76-
// },
66+
// [ChainId.avalanche]: {
67+
// notifyText: 'Swap tokens directly in the Aave App',
68+
// buttonText: 'Swap Now',
69+
// buttonAction: {
70+
// type: 'function' as const,
71+
// value: () => openSwitch('', ChainId.avalanche),
72+
// },
73+
// bannerVersion: 'avalanche-swap-v1',
74+
// icon: '/icons/networks/avalanche.svg',
75+
// },
7776

78-
// [ChainId.arbitrum_one]: {
79-
// notifyText: 'Swap tokens directly in the Aave App',
80-
// buttonText: 'Swap Now',
81-
// buttonAction: {
82-
// type: 'function' as const,
83-
// value: () => openSwitch('', ChainId.arbitrum_one),
84-
// },
85-
// bannerVersion: 'arbitrum-swap-v1',
86-
// icon: '/icons/networks/arbitrum.svg',
87-
// },
77+
// [ChainId.arbitrum_one]: {
78+
// notifyText: 'Swap tokens directly in the Aave App',
79+
// buttonText: 'Swap Now',
80+
// buttonAction: {
81+
// type: 'function' as const,
82+
// value: () => openSwitch('', ChainId.arbitrum_one),
83+
// },
84+
// bannerVersion: 'arbitrum-swap-v1',
85+
// icon: '/icons/networks/arbitrum.svg',
86+
// },
8887

89-
// [ChainId.optimism]: {
90-
// notifyText: 'Swap tokens directly in the Aave App',
91-
// buttonText: 'Swap Now',
92-
// buttonAction: {
93-
// type: 'function' as const,
94-
// value: () => openSwitch('', ChainId.optimism),
95-
// },
96-
// bannerVersion: 'optimism-swap-v1',
97-
// icon: '/icons/networks/optimism.svg',
98-
// },
88+
// [ChainId.optimism]: {
89+
// notifyText: 'Swap tokens directly in the Aave App',
90+
// buttonText: 'Swap Now',
91+
// buttonAction: {
92+
// type: 'function' as const,
93+
// value: () => openSwitch('', ChainId.optimism),
94+
// },
95+
// bannerVersion: 'optimism-swap-v1',
96+
// icon: '/icons/networks/optimism.svg',
97+
// },
9998

100-
// [ChainId.xdai]: {
101-
// notifyText: 'Swap tokens directly in the Aave App',
102-
// buttonText: 'Swap Now',
103-
// buttonAction: {
104-
// type: 'function' as const,
105-
// value: () => openSwitch('', ChainId.xdai),
106-
// },
107-
// bannerVersion: 'gnosis-swap-v1',
108-
// icon: '/icons/networks/gnosis.svg',
109-
// },
99+
// [ChainId.xdai]: {
100+
// notifyText: 'Swap tokens directly in the Aave App',
101+
// buttonText: 'Swap Now',
102+
// buttonAction: {
103+
// type: 'function' as const,
104+
// value: () => openSwitch('', ChainId.xdai),
105+
// },
106+
// bannerVersion: 'gnosis-swap-v1',
107+
// icon: '/icons/networks/gnosis.svg',
108+
// },
110109

111-
// [ChainId.bnb]: {
112-
// notifyText: 'Swap tokens directly in the Aave App',
113-
// buttonText: 'Swap Now',
114-
// buttonAction: {
115-
// type: 'function' as const,
116-
// value: () => openSwitch('', ChainId.bnb),
117-
// },
118-
// bannerVersion: 'binance-swap-v1',
119-
// icon: '/icons/networks/binance.svg',
120-
// },
121-
});
110+
// [ChainId.bnb]: {
111+
// notifyText: 'Swap tokens directly in the Aave App',
112+
// buttonText: 'Swap Now',
113+
// buttonAction: {
114+
// type: 'function' as const,
115+
// value: () => openSwitch('', ChainId.bnb),
116+
// },
117+
// bannerVersion: 'binance-swap-v1',
118+
// icon: '/icons/networks/binance.svg',
119+
// },
120+
});
122121

123122
export function MainLayout({ children }: { children: ReactNode }) {
124-
const { openSwap } = useModalContext();
123+
// const { openSwap } = useModalContext();
125124
// const router = useRouter();
126125
// const setCurrentMarket = useRootStore(useShallow((store) => store.setCurrentMarket));
127126

@@ -130,7 +129,7 @@ export function MainLayout({ children }: { children: ReactNode }) {
130129
// router.push(`/markets/?marketName=${market}`);
131130
// };
132131

133-
const campaignConfigs = getCampaignConfigs(openSwap);
132+
const campaignConfigs = getCampaignConfigs();
134133

135134
return (
136135
<>

0 commit comments

Comments
 (0)