diff --git a/src/container/DDAgreements/ViewDDAgreementModal.tsx b/src/container/DDAgreements/ViewDDAgreementModal.tsx index 385986d..e4662aa 100644 --- a/src/container/DDAgreements/ViewDDAgreementModal.tsx +++ b/src/container/DDAgreements/ViewDDAgreementModal.tsx @@ -1,186 +1,186 @@ import React, { - Dispatch, - SetStateAction, - } from "react"; - import { useForm, FormProvider, useFieldArray } from "react-hook-form"; - - import { Drawer, Typography, Button, Box, Avatar } from "@mui/material"; - import CloseIcon from "@mui/icons-material/Close"; - import { Purpose } from "./Purpose"; - import { Version } from "./Version"; - import { DataExchangeModeFormControl } from "./DataExchangeMode"; - import { PurposeDescription } from "./PurposeDescription"; - - - import DefaultBanner from "../../assets/OrganisationDefaultBanner.jpg"; - import DefaultLogo from "../../assets/OrganisationDefaultLogo.png"; - - import DataAgreementPersonalDataTable from "../dataAgreements/DataAgreementPersonalDataTable"; - import DataAgreementPolicy from "../dataAgreements/DataAgreementPolicy"; - import DPIAConfigurations from "../dataAgreements/DPIAConfiguration"; - import DataSchemaModal from "./dataSchemaModal"; - - import { DataAgreementPayload } from "../dataAgreements/DataAgreementActions"; - import { HttpService } from "../../service/HTTPService"; - - - import { LawfullBasisOfProcessingFormControll } from "../dataAgreements/LawfullBasisOfProcessing"; - import { OrganizationDetailsCRUDContext } from "../../contexts/organizationDetailsCrud"; - import SnackbarComponent from "../notification"; - import { isFormDataChanged } from "../../utils/isFormDataChanged"; - import { useTranslation } from "react-i18next"; + Dispatch, + SetStateAction, +} from "react"; +import { useForm, FormProvider, useFieldArray } from "react-hook-form"; + +import { Drawer, Typography, Button, Box, Avatar } from "@mui/material"; +import CloseIcon from "@mui/icons-material/Close"; +import { Purpose } from "./Purpose"; +import { Version } from "./Version"; +import { DataExchangeModeFormControl } from "./DataExchangeMode"; +import { PurposeDescription } from "./PurposeDescription"; + + +import DefaultBanner from "../../assets/OrganisationDefaultBanner.jpg"; +import DefaultLogo from "../../assets/OrganisationDefaultLogo.png"; + +import DataAgreementPersonalDataTable from "../dataAgreements/DataAgreementPersonalDataTable"; +import DataAgreementPolicy from "../dataAgreements/DataAgreementPolicy"; +import DPIAConfigurations from "../dataAgreements/DPIAConfiguration"; +import DataSchemaModal from "./dataSchemaModal"; + +import { DataAgreementPayload } from "../dataAgreements/DataAgreementActions"; +import { HttpService } from "../../service/HTTPService"; + + +import { LawfullBasisOfProcessingFormControll } from "../dataAgreements/LawfullBasisOfProcessing"; +import { OrganizationDetailsCRUDContext } from "../../contexts/organizationDetailsCrud"; +import SnackbarComponent from "../notification"; +import { isFormDataChanged } from "../../utils/isFormDataChanged"; +import { useTranslation } from "react-i18next"; import { defaultCoverImage, defaultLogoImg } from "../../utils/defalultImages"; import { ConnectedAgreement } from "./ConnectedAgreement"; import DataSharingRestriction from "./DataSharingRestriction"; - - interface Props { - open: boolean; - handleClose: Dispatch>; - mode: string; - successCallback?: any; - resourceName?: string; - selectededDataAgreementFromDataAgreement?: any; - dataAgrreementRevisionIdForSelectedRecord?: string | undefined; - setSelectedDropdownValue?: any; - } - - let defaultValue = { - Name: "", - Description: "", - Version: "1.0.0", - AttributeType: "null", - LawfulBasisOfProcessing: "consent", - PolicyURL: "https://igrant.io/policy.html", - Jurisdiction: "London, GB", - IndustryScope: "Retail", - StorageLocation: "Europe", - dataRetentionPeriodDays: 0, - Restriction: "Europe", - Shared3PP: false, - DpiaDate: new Date().toISOString().slice(0, 16), - DpiaSummaryURL: "https://privacyant.se/dpia_results.html", - dataAttributes: [{ attributeName: "", attributeDescription: "" }], - }; - - export default function ViewDataAgreementModal(props: Props) { - const { - open, - handleClose, - mode, - successCallback, - resourceName, - selectededDataAgreementFromDataAgreement, - dataAgrreementRevisionIdForSelectedRecord, - setSelectedDropdownValue, - } = props; - const { t } = useTranslation("translation"); - - - return ( - <> - - -
- - - - Edit Data Agreement: User Data for Third Parties - - {mode !== "Create" && ( - - 654cf0db9684ed907ce07c5f - - )} - - - - - + +interface Props { + open: boolean; + handleClose: Dispatch>; + mode: string; + successCallback?: any; + resourceName?: string; + selectededDataAgreementFromDataAgreement?: any; + dataAgrreementRevisionIdForSelectedRecord?: string | undefined; + setSelectedDropdownValue?: any; +} + +let defaultValue = { + Name: "", + Description: "", + Version: "1.0.0", + AttributeType: "null", + LawfulBasisOfProcessing: "consent", + PolicyURL: "https://igrant.io/policy.html", + Jurisdiction: "London, GB", + IndustryScope: "Retail", + StorageLocation: "Europe", + dataRetentionPeriodDays: 0, + Restriction: "Europe", + Shared3PP: false, + DpiaDate: new Date().toISOString().slice(0, 16), + DpiaSummaryURL: "https://privacyant.se/dpia_results.html", + dataAttributes: [{ attributeName: "", attributeDescription: "" }], +}; + +export default function ViewDataAgreementModal(props: Props) { + const { + open, + handleClose, + mode, + successCallback, + resourceName, + selectededDataAgreementFromDataAgreement, + dataAgrreementRevisionIdForSelectedRecord, + setSelectedDropdownValue, + } = props; + const { t } = useTranslation("translation"); + + + return ( + <> + + + + + + + View Data Disclosure Agreement: User Data for Third Parties + + {mode !== "Create" && ( + + 654cf0db9684ed907ce07c5f + + )} - - + + + + + + + + + + + + National ID + + + Sweden + + + {t("common.overView")} + + + For Queries about how we are managing your data please contact the Data Protection Officer. + + + + + (View Data Disclosure Agreement) + + + - - - - - - National ID - - - Sweden - - - {t("common.overView")} - - - For Queries about how we are managing your data please contact the Data Protection Officer. - - - - - (View Data Disclosure Agreement) - - - - + - + - + - {/* */} - {/* */} - {/* */} + {/* */} + {/* */} - {/* */} + {/* */} - {/* */} - {/* Required for future purpose in enterprise dashboard */} - {/* */} - {/* + {/* */} - - - - - - ); - } - \ No newline at end of file + + +
+
+ + ); +} diff --git a/src/container/DDAgreements/style.scss b/src/container/DDAgreements/style.scss index 52e1784..13d8be4 100644 --- a/src/container/DDAgreements/style.scss +++ b/src/container/DDAgreements/style.scss @@ -33,16 +33,16 @@ height: 100vh; background-color: #FFFF; margin-top: 0; - width: 540px; + // width: 540px; @include tabletAndDown { margin-top: 0; - width: 380px; + // width: 380px; } } .dd-modal-header { font-size: 16px; - background-color: #0A065E; + background-color: #03182b; display: flex; align-items: center; height: 80px;