-
+
@@ -21,7 +21,7 @@ export function Header() {
diff --git a/apps/webapp/components/layout/nav-links.tsx b/apps/webapp/components/layout/nav-links.tsx
index a1789b7c2..07282d17c 100644
--- a/apps/webapp/components/layout/nav-links.tsx
+++ b/apps/webapp/components/layout/nav-links.tsx
@@ -1,13 +1,12 @@
'use client'
+
import Link from 'next/link'
import { useSession } from '@/hooks/use-session'
import { useConnectModal } from '@rainbow-me/rainbowkit'
-import { useRouter } from 'next/router'
export function NavLinks({ mobile = false }: { mobile?: boolean }) {
const { session, loginUri, newSessionId } = useSession()
- const router = useRouter()
const { openConnectModal } = useConnectModal()
const login = () => {
@@ -23,7 +22,7 @@ export function NavLinks({ mobile = false }: { mobile?: boolean }) {
console.log('💥 callbackUrl', callbackUrl)
const encodedCallbackUrl = encodeURIComponent(callbackUrl)
params.append('callback', encodedCallbackUrl)
- router.push(`https://app.bitcash.org/login?${params.toString()}`)
+ location.href = `https://app.bitcash.org/login?${params.toString()}`
}
const links = [