mirror of
https://github.com/cfngc4594/monaco-editor-lsp-next.git
synced 2025-05-18 15:26:36 +00:00
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
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:
parent
91ce73d72b
commit
b55ed07004
@ -24,7 +24,14 @@ export function LanguageServerAccordion({
|
|||||||
const { hydrated, activeLanguageServerSetting, setActiveLanguageServerSetting } =
|
const { hydrated, activeLanguageServerSetting, setActiveLanguageServerSetting } =
|
||||||
useAdminSettingsStore();
|
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 (
|
return (
|
||||||
<Accordion
|
<Accordion
|
||||||
|
Loading…
Reference in New Issue
Block a user