Skip to content

Commit

Permalink
Merge pull request #17 from push-protocol/f_push_scan
Browse files Browse the repository at this point in the history
F push scan
  • Loading branch information
rohitmalhotra1420 authored Dec 3, 2024
2 parents ef7f21d + 703e867 commit 212fba3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 21 deletions.
14 changes: 1 addition & 13 deletions pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<QueryClientProvider client={queryClient}>
<GlobalThemeProvider>
Expand Down
18 changes: 10 additions & 8 deletions pages/transactions/[txHash].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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: () => <Spinner size="extraLarge" />,
}
);
// const TransactionDetailsView = dynamic(
// () => import('../../sections/Transactions/txHash'),
// {
// loading: () => <Spinner size="extraLarge" />,
// }
// );

const TransactionDetailsPage = () => {
return (
Expand Down

0 comments on commit 212fba3

Please sign in to comment.