diff --git a/src/pages/my-groups/GroupStudentsPage.tsx b/src/pages/my-groups/GroupStudentsPage.tsx index a9141e8..5df0f6e 100644 --- a/src/pages/my-groups/GroupStudentsPage.tsx +++ b/src/pages/my-groups/GroupStudentsPage.tsx @@ -11,7 +11,11 @@ export default function GroupStudentsPage() { return (

Список студентов группы

- {isStudentsLoading && } + {isStudentsLoading && ( +
+ +
+ )} {!isStudentsLoading && }
); diff --git a/src/pages/my-groups/StudentTaskAnswersPage.tsx b/src/pages/my-groups/StudentTaskAnswersPage.tsx index 70430f6..9ee812d 100644 --- a/src/pages/my-groups/StudentTaskAnswersPage.tsx +++ b/src/pages/my-groups/StudentTaskAnswersPage.tsx @@ -1,6 +1,7 @@ import { useTaskUserAnswers } from "@/queries/tasks"; import { useParams } from "react-router-dom"; import cn from "classnames"; +import { Spinner } from "@nextui-org/react"; export default function StudentTaskAnswersPage() { const { id } = useParams(); @@ -11,6 +12,11 @@ export default function StudentTaskAnswersPage() {

Результаты студента

+ {isUserAnswersLoading && ( +
+ +
+ )} {!isUserAnswersLoading && userAnswers && (
{!userAnswers.length && ( diff --git a/src/pages/my-groups/StudentTaskAnswersTable.tsx b/src/pages/my-groups/StudentTaskAnswersTable.tsx deleted file mode 100644 index 3105297..0000000 --- a/src/pages/my-groups/StudentTaskAnswersTable.tsx +++ /dev/null @@ -1 +0,0 @@ -const columns = [{ key: "id", label: "ID" }];