Skip to content

fix: wrap app with ThemeProvider for theme hook stability#120

Merged
DeadIndian merged 1 commit into
DeadIndian:mainfrom
KGFCH2:fix/theme-provider-wrapper
Jun 3, 2026
Merged

fix: wrap app with ThemeProvider for theme hook stability#120
DeadIndian merged 1 commit into
DeadIndian:mainfrom
KGFCH2:fix/theme-provider-wrapper

Conversation

@KGFCH2
Copy link
Copy Markdown
Contributor

@KGFCH2 KGFCH2 commented Jun 2, 2026

Related Issue

Closes #119

Summary

Wraps the frontend application with ThemeProvider so theme hooks such as useTheme work correctly across the React tree.

Changes Made

  • Added ThemeProvider import in client/src/main.jsx
  • Wrapped the app and routing tree with <ThemeProvider>

Testing

  • Verified app builds successfully
  • Confirmed theme toggle remains functional
  • Verified no theme hook errors in the browser console

Impact

This resolves theme context errors and improves stability for all UI components using dark/light mode.

Checklist

  • Code follows project standards
  • Tested locally
  • No unrelated changes included
  • Responsive design verified
  • Accessibility considered

@DeadIndian DeadIndian added good first issue Good for newcomers newbie Level 1 issue for ELUSOC 2026 ELUSOC labels Jun 3, 2026
@DeadIndian DeadIndian merged commit 98f6c6d into DeadIndian:main Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ELUSOC good first issue Good for newcomers newbie Level 1 issue for ELUSOC 2026

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Theme hooks fail because ThemeProvider is not wrapping the app

2 participants