diff --git a/src/app.tsx b/src/app.tsx
index 329bc34..9c841a8 100644
--- a/src/app.tsx
+++ b/src/app.tsx
@@ -34,8 +34,8 @@ const App = () => {
if(path === '/') {
navigate('/');
return;
- } else if (path === '/data-source-list') {
- navigate('/data-source-list');
+ } else if (path === '/data-source/read') {
+ navigate('/data-source/read');
} else {
navigate('/login');
return;
diff --git a/src/container/DDAgreements/ViewDDAgreementModal.tsx b/src/container/DDAgreements/ViewDDAgreementModal.tsx
index d12582c..f3fb566 100644
--- a/src/container/DDAgreements/ViewDDAgreementModal.tsx
+++ b/src/container/DDAgreements/ViewDDAgreementModal.tsx
@@ -1,14 +1,8 @@
import React, { Dispatch, SetStateAction, useEffect } from "react";
-
-import { Drawer, Typography, Box, Avatar, Button } from "@mui/material";
-import CloseIcon from "@mui/icons-material/Close";
-
import { useTranslation } from "react-i18next";
-import { defaultCoverImage, defaultLogoImg } from "../../utils/defalultImages";
-import { DataAttributeCardForDDA } from "./dataAttributeCardForDDA";
-import { DDAPolicyCard } from "./dataPolicyCard";
import { useAppDispatch, useAppSelector } from "../../customHooks";
import { gettingStartAction } from "../../redux/actionCreators/gettingStart";
+import ViewDataAgreementModalInner from "./ViewDDAgreementModalInner";
interface Props {
open: boolean;
@@ -31,107 +25,16 @@ export default function ViewDataAgreementModal(props: Props) {
);
return (
- <>
-
-
-
-
-
- >
+
);
}
diff --git a/src/container/DDAgreements/ViewDDAgreementModalInner.tsx b/src/container/DDAgreements/ViewDDAgreementModalInner.tsx
new file mode 100644
index 0000000..573d395
--- /dev/null
+++ b/src/container/DDAgreements/ViewDDAgreementModalInner.tsx
@@ -0,0 +1,149 @@
+import React, { Dispatch, SetStateAction } from "react";
+
+import { Drawer, Typography, Box, Avatar, Button } from "@mui/material";
+import CloseIcon from "@mui/icons-material/Close";
+
+import { useTranslation } from "react-i18next";
+import { defaultCoverImage, defaultLogoImg } from "../../utils/defalultImages";
+import { DataAttributeCardForDDA } from "./dataAttributeCardForDDA";
+import { DDAPolicyCard } from "./dataPolicyCard";
+
+interface Props {
+ open: boolean;
+ setOpen: Dispatch>;
+ mode: string;
+ selectedData: any;
+ dataSourceName: any;
+ dataSourceLocation: any;
+ dataSourceDescription: any;
+ coverImage: any;
+ logoImage: any;
+}
+
+export default function ViewDataAgreementModalInner(props: Props) {
+ const { open, setOpen, mode, selectedData, dataSourceName, dataSourceLocation, dataSourceDescription, coverImage, logoImage } = props;
+ const { t } = useTranslation("translation");
+
+ return (
+ <>
+
+
+
+
+
+ >
+ );
+}
diff --git a/src/container/DDAgreements/style.scss b/src/container/DDAgreements/style.scss
index ad20962..418272f 100644
--- a/src/container/DDAgreements/style.scss
+++ b/src/container/DDAgreements/style.scss
@@ -106,6 +106,13 @@
border: 1px solid #DFDFDF !important;
}
+.copy-connection-btn {
+ height: 30px !important;
+ // width: 150px !important;
+ border-radius: 0 !important;
+ border: 1px solid #DFDFDF !important;
+}
+
.disable-btn {
height: 30px !important;
width: 150px !important;
diff --git a/src/container/Home/DataSource.tsx b/src/container/Home/DataSource.tsx
index 421fada..9c77650 100644
--- a/src/container/Home/DataSource.tsx
+++ b/src/container/Home/DataSource.tsx
@@ -12,6 +12,50 @@ import { useTranslation } from "react-i18next";
import { dataSourceEachList } from '../../redux/actionCreators/dataSource'
import { useAppDispatch, useAppSelector } from "../../customHooks";
+interface DataDisclosureAgreement {
+ purpose: string
+ version: string
+ language: string
+ connection: Connection
+ templateId: string
+ lawfulBasis: string
+ personalData: PersonalDaum[]
+ codeOfConduct: string
+ dataController: DataController
+ agreementPeriod: number
+ purposeDescription: string
+ dataSharingRestrictions: DataSharingRestrictions
+ status: string
+ isLatestVersion: boolean
+}
+
+interface Connection {
+ invitationUrl: string
+}
+
+interface PersonalDaum {
+ attributeId: string
+ attributeName: string
+ attributeDescription: string
+}
+
+interface DataController {
+ did: string
+ url: string
+ name: string
+ legalId: string
+ industrySector: string
+}
+
+interface DataSharingRestrictions {
+ policyUrl: string
+ jurisdiction: string
+ industrySector: string
+ storageLocation: string
+ dataRetentionPeriod: number
+ geographicRestriction: string
+}
+
interface DataSourceCardProp {
dataSource: {
description: string,
@@ -22,10 +66,11 @@ interface DataSourceCardProp {
sector: string,
location: string,
policyUrl: string,
- }
+ },
+ dataDisclosureAgreements: DataDisclosureAgreement[]
}
-const DataSourceCard = ({ dataSource }: DataSourceCardProp) => {
+const DataSourceCard = ({ dataSource, dataDisclosureAgreements }: DataSourceCardProp) => {
const navigate = useNavigate();
const dispatch = useAppDispatch();
const { t } = useTranslation("translation");
@@ -36,7 +81,7 @@ const DataSourceCard = ({ dataSource }: DataSourceCardProp) => {
const handleClick = (obj: DataSourceCardProp) => {
dispatch(dataSourceEachList(obj));
- navigate('/data-source-list');
+ navigate('/data-source/read');
}
return (
@@ -70,7 +115,7 @@ const DataSourceCard = ({ dataSource }: DataSourceCardProp) => {
-