Skip to content

Commit

Permalink
include Header in the SearchParamsContext
Browse files Browse the repository at this point in the history
  • Loading branch information
DiogoSoaress committed Dec 14, 2023
1 parent fe82e49 commit c64400d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 13 deletions.
15 changes: 6 additions & 9 deletions src/components/common/Header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import css from './styles.module.css'
import clsx from 'clsx'
import { useRouter } from 'next/router'
import navItemsData from '@/content/navItems.json'
import SafeLink from '@/components/common/SafeLink'

type NavItemType = {
label: string | JSX.Element
Expand Down Expand Up @@ -76,15 +77,11 @@ const Header = () => {
</li>
))}
<li>
<Button
className={css.button}
href={WALLET_LINK}
target="_blank"
rel="noopener noreferrer"
variant="contained"
>
Launch Wallet
</Button>
<SafeLink href={WALLET_LINK}>
<Button className={css.button} variant="contained">
Launch Wallet
</Button>
</SafeLink>
</li>
</ul>
</nav>
Expand Down
8 changes: 4 additions & 4 deletions src/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ const App = ({
<CookieBannerContextProvider>
<InitHooks />

<PageLayout>
<SearchParamsContextProvider>
<SearchParamsContextProvider>
<PageLayout>
<Component {...pageProps} />
</SearchParamsContextProvider>
</PageLayout>
</PageLayout>
</SearchParamsContextProvider>

<CookieBanner />
</CookieBannerContextProvider>
Expand Down

0 comments on commit c64400d

Please sign in to comment.