Fix: Inline deleted JSON components to resolve build errors

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-18 21:58:04 +00:00
parent 56aeb492e6
commit 1bb2eadbe8
9 changed files with 174 additions and 46 deletions

View File

@@ -1,5 +1,4 @@
import { PageRenderer } from '@/lib/json-ui/page-renderer'
import { LoadingFallback } from '@/components/molecules'
import { useSchemaLoader } from '@/hooks/use-schema-loader'
interface JSONSchemaPageLoaderProps {
@@ -12,7 +11,14 @@ export function JSONSchemaPageLoader({ schemaPath, data, functions }: JSONSchema
const { schema, loading, error } = useSchemaLoader(schemaPath)
if (loading) {
return <LoadingFallback message={`Loading ${schemaPath}...`} />
return (
<div className="flex items-center justify-center h-full w-full">
<div className="flex flex-col items-center gap-3">
<div className="w-8 h-8 border-2 border-primary border-t-transparent rounded-full animate-spin" />
<p className="text-sm text-muted-foreground">Loading {schemaPath}...</p>
</div>
</div>
)
}
if (error || !schema) {