Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

F push scan #17

Merged
merged 2 commits into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading