import React, { useRef, useState } from "react"; import "../css/signerListPlace.css"; import { darkenColor, getFirstLetter } from "../utils/Utils"; const RecipientList = (props) => { const color = [ "#93a3db", "#e6c3db", "#c0e3bc", "#bce3db", "#b8ccdb", "#ceb8db", "#ffccff", "#99ffcc", "#cc99ff", "#ffcc99", "#66ccff", "#ffffcc" ]; const nameColor = [ "#304fbf", "#7d5270", "#5f825b", "#578077", "#576e80", "#6d527d", "#cc00cc", "#006666", "#cc00ff", "#ff9900", "#336699", "#cc9900" ]; const [isHover, setIsHover] = useState(); const [isEdit, setIsEdit] = useState(false); //function for onhover signer name change background color const inputRef = useRef(null); const onHoverStyle = (ind, blockColor) => { const style = { background: blockColor ? blockColor : color[ind % color.length], padding: "10px", marginTop: "2px", display: "flex", flexDirection: "row", borderBottom: "1px solid #e3e1e1", alignItems: "center" }; return style; }; //function for onhover signer name remove background color const nonHoverStyle = (ind) => { const style = { padding: "10px", marginTop: "2px", display: "flex", flexDirection: "row", borderBottom: "1px solid #e3e1e1", alignItems: "center" }; return style; }; const isWidgetExist = (Id) => { return props.signerPos.some((x) => x.Id === Id); }; return ( <> {props.signersdata.length > 0 && props.signersdata.map((obj, ind) => { return (