rwadurian/backend/mpc-system/services/service-party-app/src/components
hailin 77bbb43eb5 fix(electron): sync network status display with Settings in real-time
Previously, the network badge (testnet/mainnet) in Layout sidebar only
loaded once on mount and didn't update when user changed network in
Settings page.

Changes:
- Layout.tsx: Read network from localStorage first (consistent with
  transaction.ts), then fallback to Electron API
- Layout.tsx: Listen for 'storage' event (cross-tab) and custom
  'kava-network-change' event (same-tab) to update display
- Settings.tsx: Dispatch custom event when switching networks so
  Layout can update immediately

Android app doesn't have this issue - it uses StateFlow which
automatically triggers re-renders when settings change.

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

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-01 03:24:19 -08:00
..
DebugConsole.module.css feat(mpc-system): 完善 co_managed_keygen 流程并添加调试控制台 2025-12-29 05:32:40 -08:00
DebugConsole.tsx feat(mpc-system): 完善 co_managed_keygen 流程并添加调试控制台 2025-12-29 05:32:40 -08:00
Layout.module.css feat(service-party-app): add Kava network switch (mainnet/testnet) 2025-12-30 10:31:27 -08:00
Layout.tsx fix(electron): sync network status display with Settings in real-time 2026-01-01 03:24:19 -08:00
StartupCheck.module.css feat(service-party-app): 添加应用状态检测和启动检查功能 2025-12-28 20:33:00 -08:00
StartupCheck.tsx feat(service-party-app): 添加应用状态检测和启动检查功能 2025-12-28 20:33:00 -08:00