Closed srikanthpathlavath closed 5 years ago
please help me to resolve this issue.
If anyone has the same issue, please follow the below steps:
return (
<span className={`${(value === 0.5 || value === 1.5 || value === 2.5 || value === 3.5)
? "cst-half-star" : ""}`}>
<span style={{ position:"absolute"}} >
<i className="far fa-star" />
</span>
<span>
<i className="fas fa-star-half" />
</span>
</span>
);
}}
CSS style:
.cst-half-star { margin-right: 10px; }