Skip to content

Commit

Permalink
Merge pull request #20 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 9, 2024
2 parents 4742608 + 5e42b23 commit f1ff10c
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 21 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,16 @@ jobs:
static_site_generator: next

# Step 5: Restore build cache
# - name: Restore cache
# uses: actions/cache@v3
# with:
# path: |
# .next/cache
# # Generate a new cache whenever packages or source files change.
# key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
# # If source files changed but packages didn't, rebuild from a prior cache.
# restore-keys: |
# ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
- name: Restore cache
uses: actions/cache@v3
with:
path: |
.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json', '**/yarn.lock') }}-
# Step 6: Conditionally set NEXT_PUBLIC_BASE_PATH based on the repository
- name: Set base path for GitHub Pages
Expand Down
1 change: 0 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
reactStrictMode: false,
swcMinify: true,
devIndicators: {
Expand Down
14 changes: 14 additions & 0 deletions pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,20 @@ class MyDocument extends Document {
name="viewport"
content="width=device-width, initial-scale=1.0"
/>
<script
async
src="https://www.googletagmanager.com/gtag/js?id=G-4QRG14GXW2"
></script>
<script
dangerouslySetInnerHTML={{
__html: `
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-4QRG14GXW2');
`,
}}
></script>
</Head>
<body>
<Main />
Expand Down
18 changes: 8 additions & 10 deletions pages/transactions/[txHash].tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,16 @@ import dynamic from 'next/dynamic';
import Head from 'next/head';

// Internal Components imports
// import { Spinner } from '../../blocks';
import Layout from '../../layout';
import TransactionDetailsView from '../../sections/Transactions/txHash';
import { Spinner } from '../../blocks';

// 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 f1ff10c

Please sign in to comment.