From 9b123052dcf5a2c81ca1ebf4da593c2102a62d47 Mon Sep 17 00:00:00 2001 From: rohitmalhotra1420 Date: Tue, 3 Dec 2024 16:20:19 +0530 Subject: [PATCH 1/2] removed changes in _app.tsx --- pages/_app.tsx | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/pages/_app.tsx b/pages/_app.tsx index 0cf0cb1..a37f9ed 100644 --- a/pages/_app.tsx +++ b/pages/_app.tsx @@ -14,22 +14,10 @@ import { ThemeProvider as GlobalThemeProvider } from '../contexts/ThemeContext'; import { DataProvider } from '../contexts/DataContext'; import { QueryClient, QueryClientProvider } from 'react-query'; -import { useRouter } from 'next/dist/client/router'; + const queryClient = new QueryClient(); export default function App({ Component, pageProps }: AppProps) { - const router = useRouter(); - - useEffect(() => { - // Check for the redirect parameter - const redirect = new URLSearchParams(window.location.search).get( - 'redirect' - ); - if (redirect) { - router.replace(redirect); // Navigate to the original path - } - }, [router]); - return ( From 703e86751252d15245f5bf0a1032530490995dbf Mon Sep 17 00:00:00 2001 From: rohitmalhotra1420 Date: Tue, 3 Dec 2024 16:25:41 +0530 Subject: [PATCH 2/2] removed dynamic import --- pages/transactions/[txHash].tsx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/pages/transactions/[txHash].tsx b/pages/transactions/[txHash].tsx index 04ad3a1..d2b3e25 100644 --- a/pages/transactions/[txHash].tsx +++ b/pages/transactions/[txHash].tsx @@ -4,16 +4,18 @@ import dynamic from 'next/dynamic'; import Head from 'next/head'; // Internal Components imports -import { Spinner } from '../../blocks'; +// import { Spinner } from '../../blocks'; +import Layout from '../../layout'; +import TransactionDetailsView from '../../sections/Transactions/txHash'; -const Layout = dynamic(() => import('../../layout')); +// const Layout = dynamic(() => import('../../layout')); -const TransactionDetailsView = dynamic( - () => import('../../sections/Transactions/txHash'), - { - loading: () => , - } -); +// const TransactionDetailsView = dynamic( +// () => import('../../sections/Transactions/txHash'), +// { +// loading: () => , +// } +// ); const TransactionDetailsPage = () => { return (