feat(code-editor): add loading skeleton for dynamic editor component

This commit is contained in:
cfngc4594 2025-02-20 15:43:03 +08:00
parent 96c946a2ca
commit 162825250b

View File

@ -23,7 +23,10 @@ const DynamicEditor = dynamic(
return Editor;
},
{ ssr: false }
{
ssr: false,
loading: () => <Skeleton className="h-full w-full" />,
}
);
export default function CodeEditor() {