@@ -3,7 +3,7 @@ import { Box } from '@mui/material';
3
3
// import { useRouter } from 'next/router';
4
4
import React , { ReactNode } from 'react' ;
5
5
import AnalyticsConsent from 'src/components/Analytics/AnalyticsConsent' ;
6
- import { useModalContext } from 'src/hooks/useModal' ;
6
+ // import { useModalContext } from 'src/hooks/useModal';
7
7
import { FeedbackModal } from 'src/layouts/FeedbackDialog' ;
8
8
// import { useRootStore } from 'src/store/root';
9
9
// import { CustomMarket } from 'src/ui-config/marketsConfig';
@@ -14,114 +14,113 @@ import { AppFooter } from './AppFooter';
14
14
import { AppHeader } from './AppHeader' ;
15
15
import TopBarNotify from './TopBarNotify' ;
16
16
17
- const getCampaignConfigs = (
17
+ const getCampaignConfigs = ( ) =>
18
18
// openSwitch: (token?: string, chainId?: number) => void,
19
- openSwap : ( underlyingAsset : string ) => void
19
+ // openSwap: (underlyingAsset: string) => void
20
20
// 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' ,
28
31
} ,
29
- bannerVersion : 'base-incentives-v1' ,
30
- icon : '/icons/networks/base.svg' ,
31
- } ,
32
32
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
+ // },
43
43
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' ,
51
53
} ,
52
- bannerVersion : 'ethereum-swap-v1' ,
53
- // icon: '/icons/networks/ethereum.svg',
54
- } ,
55
54
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
+ // },
66
65
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
+ // },
77
76
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
+ // },
88
87
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
+ // },
99
98
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
+ // },
110
109
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
+ } ) ;
122
121
123
122
export function MainLayout ( { children } : { children : ReactNode } ) {
124
- const { openSwap } = useModalContext ( ) ;
123
+ // const { openSwap } = useModalContext();
125
124
// const router = useRouter();
126
125
// const setCurrentMarket = useRootStore(useShallow((store) => store.setCurrentMarket));
127
126
@@ -130,7 +129,7 @@ export function MainLayout({ children }: { children: ReactNode }) {
130
129
// router.push(`/markets/?marketName=${market}`);
131
130
// };
132
131
133
- const campaignConfigs = getCampaignConfigs ( openSwap ) ;
132
+ const campaignConfigs = getCampaignConfigs ( ) ;
134
133
135
134
return (
136
135
< >
0 commit comments