Added the total of assignments to the Master Corporate

This commit is contained in:
Tiago Ribeiro
2024-08-19 23:04:13 +01:00
parent 346b131388
commit 5d191730d2
7 changed files with 55 additions and 21 deletions

View File

@@ -11,8 +11,10 @@ import {useAssignmentArchive} from "@/hooks/useAssignmentArchive";
import {uniqBy} from "lodash";
import {useAssignmentUnarchive} from "@/hooks/useAssignmentUnarchive";
import {getUserName} from "@/utils/users";
import {User} from "@/interfaces/user";
interface Props {
users: User[];
onClick?: () => void;
allowDownload?: boolean;
reload?: Function;
@@ -35,9 +37,8 @@ export default function AssignmentCard({
reload,
allowArchive,
allowUnarchive,
users,
}: Assignment & Props) {
const {users} = useUsers();
const renderPdfIcon = usePDFDownload("assignments");
const renderArchiveIcon = useAssignmentArchive(id, reload);
const renderUnarchiveIcon = useAssignmentUnarchive(id, reload);