Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Commit

Permalink
Merge pull request #350 from SELab-2/verborgen-tabel
Browse files Browse the repository at this point in the history
Comment out de "hidden projects" tabel.
  • Loading branch information
msathieu authored May 22, 2024
2 parents b3c3fc6 + a1c24a3 commit 4fcd04c
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions frontend/src/pages/teacher/ProjectsViewTeacher.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,14 @@ export default function ProjectsViewTeacher(): JSX.Element {
const data: projectsTeacherLoaderObject = useRouteLoaderData(PROJECTS_TEACHER_ROUTER_ID) as projectsTeacherLoaderObject

const active_projects = data.projects.filter((project) => !project.project_archived && project.project_visible);
const hidden_projects = data.projects.filter((project) => !project.project_archived && !project.project_visible);
// Voorlopig is er geen functionaliteit om projecten te verbergen. Vandaar zullen projecten altijd zichtbaar zijn.
// const hidden_projects = data.projects.filter((project) => !project.project_archived && !project.project_visible);
const archived_projects = data.projects.filter((project) => project.project_archived);

const { t } = useTranslation();

const tableProjectsActive: TableRowProjects[] = GenerateTableRowProjects(active_projects);
const tableProjectsHidden: TableRowProjects[] = GenerateTableRowProjects(hidden_projects);
// const tableProjectsHidden: TableRowProjects[] = GenerateTableRowProjects(hidden_projects);
const tableProjectsArchived: TableRowProjects[] = GenerateTableRowProjects(archived_projects);

return (
Expand All @@ -59,8 +60,8 @@ export default function ProjectsViewTeacher(): JSX.Element {
</div>
<Table title={t('projects.active')} data={tableProjectsActive} ignoreKeys={["status"]} home={"teacher"}/>
<div className={"my-5"}/>
<Table title={t('projects.hidden')} data={tableProjectsHidden}
ignoreKeys={["status", "numberOfSubmissions"]} home={"teacher"}/>
{/* <Table title={t('projects.hidden')} data={tableProjectsHidden}
ignoreKeys={["status", "numberOfSubmissions"]} home={"teacher"}/> */}
<div className={"my-5"}/>
<Table title={t('projects.archived')} data={tableProjectsArchived}
ignoreKeys={["status", "numberOfSubmissions", "deadline"]} home={"teacher"}/>
Expand Down

0 comments on commit 4fcd04c

Please sign in to comment.