Skip to content
Open
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
5 changes: 4 additions & 1 deletion components/toggle-theme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,18 @@ export function ModeToggle() {
}, [])

function toggleTheme() {
// Use resolvedTheme to get the actual theme value (light/dark), not 'system'
const currentTheme = resolvedTheme || theme
const newTheme = currentTheme === 'light' ? 'dark' : 'light'
setTheme(newTheme)
}

// Use resolvedTheme to get the actual theme value (light/dark), not 'system'
// Wait for both mounted and resolvedTheme to be available
const currentTheme = resolvedTheme || theme
const isReady = mounted && resolvedTheme !== undefined

if (!mounted) {
if (!isReady) {
return (
<div
className="flex items-center space-x-4"
Expand Down
92 changes: 46 additions & 46 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"lucide-react": "^0.542.0",
"next": "15.5.2",
"next": "^15.5.9",
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

cat -n package.json | sed -n '15,35p'

Repository: StabilityNexus/hodlCoin-Website

Length of output: 757


🏁 Script executed:

npm view next@15.5.9 version 2>/dev/null || echo "Version not found"
npm view next@latest version 2>/dev/null
npm view eslint-config-next@15.5.9 version 2>/dev/null || echo "eslint-config-next 15.5.9 not available"

Repository: StabilityNexus/hodlCoin-Website

Length of output: 96


Update eslint-config-next to match the next version.

The next dependency is at ^15.5.9, but eslint-config-next is pinned at 15.5.2. This patch-level mismatch can cause ESLint configuration inconsistencies. Both versions 15.5.9 exist on npm.

Update eslint-config-next to 15.5.9:

-    "eslint-config-next": "15.5.2",
+    "eslint-config-next": "15.5.9",
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
"next": "^15.5.9",
"eslint-config-next": "15.5.9",
🤖 Prompt for AI Agents
In package.json around line 17, eslint-config-next is pinned to 15.5.2 while
next is ^15.5.9; update the eslint-config-next dependency to 15.5.9 to match the
next version to avoid ESLint config mismatches — edit package.json to change the
eslint-config-next version to "15.5.9" (or to ^15.5.9 if caret is desired), then
run npm/yarn install and verify linting passes.

"next-themes": "^0.4.6",
"react": "19.1.0",
"react-dom": "19.1.0",
Expand Down