mirror of
https://github.com/massbug/judge4c.git
synced 2025-05-18 15:26:33 +00:00
fix(Loading): update loading state rendering with skeletons for better UX
This commit is contained in:
parent
91ce73d72b
commit
b55ed07004
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user