diff --git a/apps/OpenSign/src/microappComponent/DragElement.js b/apps/OpenSign/src/microappComponent/DragElement.js index 2c8b5cb9d..912af9c13 100644 --- a/apps/OpenSign/src/microappComponent/DragElement.js +++ b/apps/OpenSign/src/microappComponent/DragElement.js @@ -1,56 +1,110 @@ import React from "react"; -import stamp from "./stamp2.png"; -import sign from "./sign3.png"; -import { themeColor } from "./IconColor.js"; +import { themeColor } from "./themeColor"; -function DragElement({ id }) { - const selectedId = id; +function DragElement(item) { + const getWidgets = [ + { + type: "signature", + icon: "fa-solid fa-pen-nib", + iconSize: "20px" + }, + { + type: "stamp", + icon: "fa-solid fa-stamp", + iconSize: "19px" + }, + { + type: "dropdown", + icon: "fa-solid fa-circle-chevron-down", + iconSize: "19px" + }, + { + type: "checkbox", + icon: "fa-solid fa-square-check", + iconSize: "22px" + }, + { + type: "text", + icon: "fa-solid fa-font", + iconSize: "21px" + }, + { + type: "initials", + icon: "fa-solid fa-signature", + iconSize: "15px" + }, + { + type: "name", + icon: "fa-solid fa-user", + iconSize: "21px" + }, + { + type: "company", + icon: "fa-solid fa-building", + iconSize: "24px" + }, + { + type: "job title", + icon: "fa-solid fa-address-card", + iconSize: "16px" + }, + { + type: "date", + icon: "fa-solid fa-calendar-days", + iconSize: "19px" + } + ]; + + const filterWidgetPreview = getWidgets.filter( + (data) => data.type === item?.text + ); return ( -