Skip to content

Commit

Permalink
Feat: #22 Show the values for Lawful basis of processing in read data…
Browse files Browse the repository at this point in the history
… agreement similar to the other attribute values
  • Loading branch information
MARZOOQUE authored and georgepadayatti committed Oct 3, 2024
1 parent 31bb323 commit 6e1f6c6
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/Components/modals/detailsContainer/dataAgreementDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,24 @@ const DataItem = ({ label, value, isLast }) => (
</div>
);

export const getLawfulBasisOfProcessing = (
LawfulBasisOfProcessing
) => {
if (LawfulBasisOfProcessing === "consent") {
return "Consent" ;
} else if (LawfulBasisOfProcessing === "contract") {
return "Contract";
} else if (LawfulBasisOfProcessing === "legal_obligation") {
return "Legal Obligation";
} else if (LawfulBasisOfProcessing === "vital_interest") {
return "Vital Interest";
} else if (LawfulBasisOfProcessing === "public_task") {
return "Public Task";
} else {
return "Legitimate Interest";
}
};

export const DataAgreementDetails = ({
t,
purpose,
Expand All @@ -41,7 +59,7 @@ export const DataAgreementDetails = ({
{ key: t("dataAgreements.purposeDescription"), value: purposeDescription },
{
key: t("dataAgreements.lawfulBasisOfProcessing"),
value: lawfulBasisOfProcessing,
value:getLawfulBasisOfProcessing(lawfulBasisOfProcessing) ,
},
];

Expand Down

0 comments on commit 6e1f6c6

Please sign in to comment.