- Fix async params in detail/edit pages (Next.js 16 breaking change) - Add 'use client' directive to map page for SSR compatibility - Fix compare-button import syntax error - Add error/loading/not-found pages for better UX - Update API listings route with more fields - Improve metadata and branding (German locale) - Create map-client component for Leaflet handling - Rewrite compare page with URL state management Fixes issues: - Dashboard showing 0 listings (now shows actual data) - Detail page 500 error (async params) - Map stuck on loading (ssr: false in server component) - Comparison feature incomplete
23 lines
840 B
TypeScript
23 lines
840 B
TypeScript
export default function Loading() {
|
|
return (
|
|
<div className="min-h-screen bg-slate-50 p-8">
|
|
<div className="container mx-auto max-w-6xl">
|
|
<div className="animate-pulse">
|
|
<div className="h-6 bg-slate-200 rounded w-32 mb-6"></div>
|
|
<div className="grid grid-cols-1 lg:grid-cols-3 gap-6">
|
|
<div className="lg:col-span-2 space-y-6">
|
|
<div className="h-96 bg-slate-200 rounded"></div>
|
|
<div className="h-48 bg-slate-200 rounded"></div>
|
|
<div className="h-48 bg-slate-200 rounded"></div>
|
|
</div>
|
|
<div className="space-y-6">
|
|
<div className="h-64 bg-slate-200 rounded"></div>
|
|
<div className="h-32 bg-slate-200 rounded"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|