Improve loading state in new task ui (#414)

This commit is contained in:
Salih Altun
2024-06-04 16:44:55 +03:00
committed by GitHub
parent 04c6e55848
commit 4cd506d340
4 changed files with 49 additions and 23 deletions

View File

@@ -8,6 +8,7 @@ import {
CardTitle,
} from "@/components/ui/card";
import { Input } from "@/components/ui/input";
import { Skeleton } from "@/components/ui/skeleton";
import { Textarea } from "@/components/ui/textarea";
import { useCredentialGetter } from "@/hooks/useCredentialGetter";
import { basicTimeFormat } from "@/util/timeFormat";
@@ -31,7 +32,11 @@ function TaskParameters() {
});
if (taskIsFetching) {
return <div>Loading parameters...</div>;
return (
<div className="h-[40rem]">
<Skeleton className="h-full" />
</div>
);
}
if (taskIsError || !task) {