diff --git a/src/components/JoinMarkupsModal/index.js b/src/components/JoinMarkupsModal/index.js
index 350546be..7eb76d32 100644
--- a/src/components/JoinMarkupsModal/index.js
+++ b/src/components/JoinMarkupsModal/index.js
@@ -14,6 +14,7 @@ const JoinMarkupsModal = ({ perspectiveId, mode, relations, onClose }) => {
const [typeRelation, setTypeRelation] = useState(null);
const joinActive = firstTextRelation && secondTextRelation && typeRelation;
+ const [deleteActive, setDeleteActive] = useState(false);
const onAddRelation = useCallback(
/*newMetadata*/ () => {
@@ -30,6 +31,29 @@ const JoinMarkupsModal = ({ perspectiveId, mode, relations, onClose }) => {
]
);
+ const onDeleteRelation = useCallback(
+ () => {
+ console.log("onDeleteRelation!!!!!!!");
+ },
+ [
+ /*language, updateLanguageMetadata*/
+ ]
+ );
+
+ const onRelationSelect = useCallback(
+ (relation_id, checked) => {
+ console.log("onRelationSelect!!!!!!!");
+ console.log("relation_id====");
+ console.log(relation_id);
+ console.log("checked====");
+ console.log(checked);
+ setDeleteActive(true);
+ },
+ [
+ /*language, updateLanguageMetadata*/
+ ]
+ );
+
console.log("perspectiveId====");
console.log(perspectiveId);
@@ -50,8 +74,8 @@ const JoinMarkupsModal = ({ perspectiveId, mode, relations, onClose }) => {