diff --git a/src/dashboards/AssignmentCard.tsx b/src/components/AssignmentCard.tsx similarity index 85% rename from src/dashboards/AssignmentCard.tsx rename to src/components/AssignmentCard.tsx index 94fc1714..42bead3a 100644 --- a/src/dashboards/AssignmentCard.tsx +++ b/src/components/AssignmentCard.tsx @@ -1,18 +1,18 @@ import ProgressBar from "@/components/Low/ProgressBar"; import useUsers from "@/hooks/useUsers"; -import {Module} from "@/interfaces"; -import {Assignment} from "@/interfaces/results"; -import {calculateBandScore} from "@/utils/score"; +import { Module } from "@/interfaces"; +import { Assignment } from "@/interfaces/results"; +import { calculateBandScore } from "@/utils/score"; import clsx from "clsx"; import moment from "moment"; -import {BsBook, BsClipboard, BsHeadphones, BsMegaphone, BsPen} from "react-icons/bs"; -import {usePDFDownload} from "@/hooks/usePDFDownload"; -import {useAssignmentArchive} from "@/hooks/useAssignmentArchive"; -import {uniqBy} from "lodash"; -import {useAssignmentUnarchive} from "@/hooks/useAssignmentUnarchive"; -import {useAssignmentRelease} from "@/hooks/useAssignmentRelease"; -import {getUserName} from "@/utils/users"; -import {User} from "@/interfaces/user"; +import { BsBook, BsClipboard, BsHeadphones, BsMegaphone, BsPen } from "react-icons/bs"; +import { usePDFDownload } from "@/hooks/usePDFDownload"; +import { useAssignmentArchive } from "@/hooks/useAssignmentArchive"; +import { uniqBy } from "lodash"; +import { useAssignmentUnarchive } from "@/hooks/useAssignmentUnarchive"; +import { useAssignmentRelease } from "@/hooks/useAssignmentRelease"; +import { getUserName } from "@/utils/users"; +import { User } from "@/interfaces/user"; import { EntityWithRoles } from "@/interfaces/entity"; interface Props { @@ -71,7 +71,7 @@ export default function AssignmentCard({ // in order to be downloadable, the assignment has to be released // the component should have the allowDownload prop // and the assignment should not have the level module - return uniqModules.every(({module}) => module !== "level"); + return uniqModules.every(({ module }) => module !== "level"); } return false; @@ -82,7 +82,7 @@ export default function AssignmentCard({ // in order to be downloadable, the assignment has to be released // the component should have the allowExcelDownload prop // and the assignment should have the level module - return uniqModules.some(({module}) => module === "level"); + return uniqModules.some(({ module }) => module === "level"); } return false; @@ -121,7 +121,7 @@ export default function AssignmentCard({ {entityObj && Entity: {entityObj.label}}
| - {header.isPlaceholder ? null : flexRender(header.column.columnDef.header, header.getContext())} - | - ))} -
|---|
| - {flexRender(cell.column.columnDef.cell, cell.getContext())} - | - ))} -