diff --git a/src/app/[locale]/projects/detail/[id]/components/Administration.tsx b/src/app/[locale]/projects/detail/[id]/components/Administration.tsx index 6dd7ae39e..c89f0bc5e 100644 --- a/src/app/[locale]/projects/detail/[id]/components/Administration.tsx +++ b/src/app/[locale]/projects/detail/[id]/components/Administration.tsx @@ -7,181 +7,193 @@ // SPDX-License-Identifier: EPL-2.0 // License-Filename: LICENSE -"use client" +'use client' import { useTranslations } from 'next-intl' import { COMMON_NAMESPACE } from '@/object-types/Constants' - import { AdministrationDataType } from '@/object-types/AdministrationDataType' +import styles from '../detail.module.css' +import { useState } from 'react' -const Capitalize = (text: string) => text.split("_").reduce((s, c) => s + " " + (c.charAt(0) + c.substring(1).toLocaleLowerCase()), "") +const Capitalize = (text: string) => + text.split('_').reduce((s, c) => s + ' ' + (c.charAt(0) + c.substring(1).toLocaleLowerCase()), '') export default function Administration({ data }: { data: AdministrationDataType }) { - - const t = useTranslations(COMMON_NAMESPACE) + const t = useTranslations(COMMON_NAMESPACE) + const [toggleClearing, setToggleClearing] = useState(false) + const [toggleLifecycle, setToggleLifecycle] = useState(false) + const [toggleLicenseInfoHeader, setToggleLicenseInfoHeader] = useState(false) return ( <> -
-
-
-
{t("Clearing")}
-
-
-
{t("Project Clearing State")}:
-
{Capitalize(data.projectClearingState)}
-
-
-
-
{t("Clearing Details")}:
-
{data.clearingDetails}
-
-
-
-
{t("Clearing Team")}:
-
{data.clearingTeam}
-
-
-
-
{t("Deadline for pre-evaluation")}:
-
{data.deadlineForPreEval}
-
-
-
-
{t("Clearing summary")}:
-
+ + { + setToggleClearing(!toggleClearing) + }} + > + + + + + + + + + + + + + + + + + + + + + + + +
{t('Clearing')}