Skip to content

Commit

Permalink
fix buid
Browse files Browse the repository at this point in the history
  • Loading branch information
sonln99 committed Dec 5, 2024
1 parent 6a62f7c commit af80339
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 48 deletions.
95 changes: 48 additions & 47 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import "react-toastify/dist/ReactToastify.css";
import Footer from "../components/Footer";
import Header from "../components/Header";
import "./globals.css";
import { WagmiProvider } from "wagmi";

const ppmori = localFont({
src: "./../assets/fonts/PPMori-SemiBold.otf",
Expand Down Expand Up @@ -56,58 +57,58 @@ export default function RootLayout({
ssr: false, // If your dApp uses server side rendering (SSR)
});
return (
// <WagmiProvider config={configWallet}>
<QueryClientProvider client={queryClient}>
<html lang="en">
<Script
id="gtm-script"
strategy="afterInteractive"
dangerouslySetInnerHTML={{
__html: `(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
<WagmiProvider config={configWallet}>
<QueryClientProvider client={queryClient}>
<html lang="en">
<Script
id="gtm-script"
strategy="afterInteractive"
dangerouslySetInnerHTML={{
__html: `(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-K3NWXQS');`,
}}
/>
<body
className={`${inter.className} ${ppmori.variable} ${jetBrains_mono.variable} ${interTight.variable} ${nacelle.variable} scroll-smooth`}
>
<div>
<input
className="nav-input hidden"
type="checkbox"
id="nav-input"
/>
<Header />
{/* <RainbowKitProvider>{children}</RainbowKitProvider> */}
{children}
<ToastContainer
position="top-right"
autoClose={3000}
hideProgressBar={true}
newestOnTop={false}
closeOnClick
rtl={false}
pauseOnFocusLoss
draggable
pauseOnHover
theme="dark"
></ToastContainer>
<Footer />
<label htmlFor="nav-input" className="nav-overlay">
{" "}
</label>
</div>
<noscript
dangerouslySetInnerHTML={{
__html: `<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-K3NWXQS"
height="0" width="0" style="display:none;visibility:hidden"></iframe>`,
}}
/>
</body>
</html>
</QueryClientProvider>
// </WagmiProvider>
<body
className={`${inter.className} ${ppmori.variable} ${jetBrains_mono.variable} ${interTight.variable} ${nacelle.variable} scroll-smooth`}
>
<div>
<input
className="nav-input hidden"
type="checkbox"
id="nav-input"
/>
<Header />
<RainbowKitProvider>{children}</RainbowKitProvider>
{children}
<ToastContainer
position="top-right"
autoClose={3000}
hideProgressBar={true}
newestOnTop={false}
closeOnClick
rtl={false}
pauseOnFocusLoss
draggable
pauseOnHover
theme="dark"
></ToastContainer>
<Footer />
<label htmlFor="nav-input" className="nav-overlay">
{" "}
</label>
</div>
<noscript
dangerouslySetInnerHTML={{
__html: `<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-K3NWXQS"
height="0" width="0" style="display:none;visibility:hidden"></iframe>`,
}}
/>
</body>
</html>
</QueryClientProvider>
</WagmiProvider>
);
}
2 changes: 1 addition & 1 deletion src/sections/statistics/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ function Statistics() {
</div>
<div className="flex flex-col gap-4 lg:hidden w-full">
{statisticData.map((item: any, i: number) => {
return <Card data={item} />;
return <Card data={item} key={i}/>;
})}
</div>
</div>
Expand Down

0 comments on commit af80339

Please sign in to comment.