feat(ui): replace skeleton loaders with honest loading states

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Jason Staack
2026-03-21 13:40:58 -05:00
parent 0ee4416077
commit 17037e4936
41 changed files with 101 additions and 275 deletions

View File

@@ -3,7 +3,7 @@ import { useQuery } from '@tanstack/react-query'
import { MapPin } from 'lucide-react'
import { metricsApi, tenantsApi } from '@/lib/api'
import { useAuth, isSuperAdmin } from '@/lib/auth'
import { Skeleton } from '@/components/ui/skeleton'
import { LoadingText } from '@/components/ui/skeleton'
import { FleetMap } from './FleetMap'
export function MapPage() {
@@ -55,7 +55,11 @@ export function MapPage() {
}, [superAdmin, selectedTenant, user])
if (devicesLoading) {
return <Skeleton className="h-[calc(100vh-8rem)] w-full rounded-lg" />
return (
<div className="flex items-center justify-center h-[calc(100vh-8rem)]">
<LoadingText />
</div>
)
}
if (devicesError) {