Skip to content

Commit

Permalink
Add Loading Screen
Browse files Browse the repository at this point in the history
  • Loading branch information
AbdBarho committed Dec 29, 2022
1 parent 66b89d4 commit 5b0b326
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions website/src/pages/evaluate/rank_user_replies.tsx
Expand Up @@ -7,6 +7,7 @@ import fetcher from "src/lib/fetcher";
import poster from "src/lib/poster";

import { Button } from "src/components/Button";
import { LoadingScreen } from "src/components/Loading/LoadingScreen";
import { Sortable } from "src/components/Sortable/Sortable";
import { TaskInfo } from "src/components/TaskInfo/TaskInfo";

Expand Down Expand Up @@ -41,9 +42,10 @@ const RankUserReplies = () => {
});
};

/**
* TODO: Make this a nicer loading screen.
*/
if (isLoading) {
return <LoadingScreen text="Loading..." />;
}

if (tasks.length == 0) {
return <div className="p-6 bg-slate-100 text-gray-800">Loading...</div>;
}
Expand Down

0 comments on commit 5b0b326

Please sign in to comment.