-
Notifications
You must be signed in to change notification settings - Fork 21
Frontend #46
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
base: main
Are you sure you want to change the base?
Frontend #46
Changes from all commits
72efd09
3581a69
b871a02
d79713b
9874d52
09975e7
5a3a479
8c49f8c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -3,6 +3,7 @@ import { Geist, Geist_Mono } from "next/font/google"; | |||||||||||||||||
| import "./globals.css"; | ||||||||||||||||||
| import { Suspense } from "react"; | ||||||||||||||||||
| import { NetworkProvider } from "@/contexts/NetworkContext"; | ||||||||||||||||||
| import { ThemeProvider } from "next-themes"; | ||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Despite the stated goal of resolving theme hydration by adopting 🤖 Prompt for AI Agents |
||||||||||||||||||
|
|
||||||||||||||||||
| // Work around Node.js experimental localStorage mismatch in dev server | ||||||||||||||||||
| // (prevents Next dev overlay from crashing when localStorage is non-standard) | ||||||||||||||||||
|
|
@@ -52,13 +53,12 @@ export default function RootLayout({ | |||||||||||||||||
| children: React.ReactNode; | ||||||||||||||||||
| }) { | ||||||||||||||||||
| return ( | ||||||||||||||||||
| <html lang="en"> | ||||||||||||||||||
| <html lang="en" suppressHydrationWarning> | ||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The 🛡️ Proposed fix — mirror the dev-only guard from customBodyProps- <html lang="en" suppressHydrationWarning>
+ <html
+ lang="en"
+ {...(process.env.NODE_ENV === "development"
+ ? { suppressHydrationWarning: true }
+ : {})}
+ >Alternatively, consolidate both 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||
| <body | ||||||||||||||||||
| className={`${geistSans.variable} ${geistMono.variable} antialiased`} | ||||||||||||||||||
| {...customBodyProps} | ||||||||||||||||||
| > | ||||||||||||||||||
| <Suspense fallback={<div>Loading...</div>}> | ||||||||||||||||||
| <NetworkProvider>{children}</NetworkProvider> | ||||||||||||||||||
| </Suspense> | ||||||||||||||||||
|
Comment on lines
61
to
62
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The 🐛 Proposed fix — restore children and wrap with ThemeProvider- <Suspense fallback={<div>Loading...</div>}>
- </Suspense>
+ <ThemeProvider attribute="class" defaultTheme="system" enableSystem>
+ <Suspense fallback={<div>Loading...</div>}>
+ {children}
+ </Suspense>
+ </ThemeProvider>📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||
| </body> | ||||||||||||||||||
| </html> | ||||||||||||||||||
|
|
||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
# Check if NetworkProvider is used within src/app/layout.tsx cat src/app/layout.tsxRepository: Trustless-Work/escrow-viewer
Length of output: 1960
🏁 Script executed:
Repository: Trustless-Work/escrow-viewer
Length of output: 99
🏁 Script executed:
Repository: Trustless-Work/escrow-viewer
Length of output: 54
🏁 Script executed:
Repository: Trustless-Work/escrow-viewer
Length of output: 54
Remove the unused
NetworkProviderimportNetworkProvideris imported on line 5 but not used anywhere in this file or elsewhere in the codebase. Remove this dead code import.🤖 Prompt for AI Agents