diff --git a/app/list/[id]/page.tsx b/app/list/[id]/page.tsx index 772e7ec..73020cd 100644 --- a/app/list/[id]/page.tsx +++ b/app/list/[id]/page.tsx @@ -7,7 +7,6 @@ import Link from 'next/link' import { ArrowLeft } from 'lucide-react' import InlineItemCreate from '@/components/InlineItemCreate' import ListDetailView from '@/components/ListDetailView' -import SyncIndicator from '@/components/SyncIndicator' export const dynamic = 'force-dynamic' export const revalidate = 0 @@ -36,7 +35,6 @@ export default async function ListDetailPage({ params }: { params: { id: string return (
- {/* Header */}
(new Date()) - - useEffect(() => { - setMounted(true) - }, []) - - useEffect(() => { - if (!mounted) return - - // Listen for router refresh events - const handleSync = () => { - setIsSyncing(true) - setLastSync(new Date()) - setTimeout(() => setIsSyncing(false), 500) - } - - // Trigger on visibility change - const handleVisibilityChange = () => { - if (document.visibilityState === 'visible') { - handleSync() - } - } - - document.addEventListener('visibilitychange', handleVisibilityChange) - - // Simulate sync indicator every second - const interval = setInterval(handleSync, 1000) - - return () => { - document.removeEventListener('visibilitychange', handleVisibilityChange) - clearInterval(interval) - } - }, [mounted]) - - // Don't render on server to avoid hydration mismatch - if (!mounted) { - return null - } - - return ( -
- - - {isSyncing ? 'Syncing...' : `Last sync: ${lastSync.toLocaleTimeString()}`} - -
- ) -}