mirror of
https://github.com/wassname/Open-Assistant.git
synced 2026-09-09 11:15:08 +08:00
Add Loading Screen
This commit is contained in:
@@ -7,6 +7,7 @@ import fetcher from "src/lib/fetcher";
|
|||||||
import poster from "src/lib/poster";
|
import poster from "src/lib/poster";
|
||||||
|
|
||||||
import { Button } from "src/components/Button";
|
import { Button } from "src/components/Button";
|
||||||
|
import { LoadingScreen } from "src/components/Loading/LoadingScreen";
|
||||||
import { Sortable } from "src/components/Sortable/Sortable";
|
import { Sortable } from "src/components/Sortable/Sortable";
|
||||||
import { TaskInfo } from "src/components/TaskInfo/TaskInfo";
|
import { TaskInfo } from "src/components/TaskInfo/TaskInfo";
|
||||||
|
|
||||||
@@ -41,9 +42,10 @@ const RankUserReplies = () => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
if (isLoading) {
|
||||||
* TODO: Make this a nicer loading screen.
|
return <LoadingScreen text="Loading..." />;
|
||||||
*/
|
}
|
||||||
|
|
||||||
if (tasks.length == 0) {
|
if (tasks.length == 0) {
|
||||||
return <div className="p-6 bg-slate-100 text-gray-800">Loading...</div>;
|
return <div className="p-6 bg-slate-100 text-gray-800">Loading...</div>;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user