mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-11-30 12:15:28 +09:00
Per docs/plans/FRONTEND_UX_TAILWIND_CLEANUP_PLAN.md §6.6. Adds a single app-level <ConfirmDialog> via ConfirmProvider (wraps the dashboard). useConfirm is now context-aware: with the provider present, confirm() routes to the one dialog and the legacy confirmState/handleConfirm/handleCancel become inert no-ops (so the 39 pages' own <ConfirmDialog> render closed/harmless until removed). Falls back to local state outside a provider so nothing breaks. Backward-compatible checkpoint; the per-page dialog removal follows. Verified: npm run build passes; 0 lint errors. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>