fix(Loading): update loading state rendering with skeletons for better UX
Some checks failed
Build & Push Monaco Docker Image / build-and-push-monaco-docker-image (., Dockerfile, monaco-editor-lsp-next) (push) Failing after 0s

This commit is contained in:
cfngc4594 2025-03-18 19:49:03 +08:00
parent 91ce73d72b
commit b55ed07004

View File

@ -24,7 +24,14 @@ export function LanguageServerAccordion({
const { hydrated, activeLanguageServerSetting, setActiveLanguageServerSetting } =
useAdminSettingsStore();
if (!hydrated) return <Loading />;
if (!hydrated) {
return (
<div className="h-full w-full space-y-2">
<Loading className="h-12 p-0" skeletonClassName="rounded-md" />
<Loading className="h-12 p-0" skeletonClassName="rounded-md" />
</div>
);
}
return (
<Accordion