fix: themeStore localStorage 키 ThemeContext와 통일

- localStorage 키를 'sam-theme'에서 'theme'으로 변경
- ThemeContext와 동일한 키 사용으로 마이그레이션 호환성 확보

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
byeongcheolryu
2025-12-22 11:00:12 +09:00
parent d7f491fa84
commit 2ebcea0255

View File

@@ -28,7 +28,7 @@ export const useThemeStore = create<ThemeState>()(
}, },
}), }),
{ {
name: 'sam-theme', name: 'theme', // ThemeContext와 동일한 키 사용 (마이그레이션 호환성)
// Zustand persist 재수화 시 HTML 클래스 복원 // Zustand persist 재수화 시 HTML 클래스 복원
onRehydrateStorage: () => (state) => { onRehydrateStorage: () => (state) => {
if (state?.theme) { if (state?.theme) {