Skip to content

Commit a5762ce

Browse files
committed
fix: banner ethena
1 parent 7672e5a commit a5762ce

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/layouts/MainLayout.tsx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import { ChainId } from '@aave/contract-helpers';
22
import { Box } from '@mui/material';
3-
import { useRouter } from 'next/router';
3+
// import { useRouter } from 'next/router';
44
import React, { ReactNode } from 'react';
55
import AnalyticsConsent from 'src/components/Analytics/AnalyticsConsent';
66
import { useModalContext } from 'src/hooks/useModal';
77
import { FeedbackModal } from 'src/layouts/FeedbackDialog';
8-
import { useRootStore } from 'src/store/root';
8+
// import { useRootStore } from 'src/store/root';
99
import { CustomMarket } from 'src/ui-config/marketsConfig';
1010
import { FORK_ENABLED } from 'src/utils/marketsAndNetworksConfig';
11-
import { useShallow } from 'zustand/shallow';
1211

12+
// import { useShallow } from 'zustand/shallow';
1313
import { AppFooter } from './AppFooter';
1414
import { AppHeader } from './AppHeader';
1515
import TopBarNotify from './TopBarNotify';
@@ -121,15 +121,15 @@ const getCampaignConfigs = (
121121

122122
export function MainLayout({ children }: { children: ReactNode }) {
123123
const { openSwitch } = useModalContext();
124-
const router = useRouter();
125-
const setCurrentMarket = useRootStore(useShallow((store) => store.setCurrentMarket));
124+
// const router = useRouter();
125+
// const setCurrentMarket = useRootStore(useShallow((store) => store.setCurrentMarket));
126126

127-
const openMarket = (market: CustomMarket) => {
128-
setCurrentMarket(market);
129-
router.push(`/markets/?marketName=${market}`);
130-
};
127+
// const openMarket = (market: CustomMarket) => {
128+
// setCurrentMarket(market);
129+
// router.push(`/markets/?marketName=${market}`);
130+
// };
131131

132-
const campaignConfigs = getCampaignConfigs(openSwitch, openMarket);
132+
const campaignConfigs = getCampaignConfigs(openSwitch);
133133

134134
return (
135135
<>

0 commit comments

Comments
 (0)