Part of Todo.js
Anonymous
html
05/24/2021 3:25 AM
860 B
38
Indexable
<div className="bar-tag-container">
<li className={`todo-item ${todo.completed ? "completed" : ""}`}>
{isSpent && <p className="tag">Spent</p>}
{isReceived && <p className="tag">Received</p>}
<div className="others">{text}</div>
</li>
</div>
<button
onClick={(() => setIsSpent(!isSpent), handleClickSpent)}
className="spent-btn"
>
<FaMoneyCheckAlt />
</button>
<button
onClick={(() => setIsReceived(!isReceived), handleClickReceived)}
className="receive-btn"
>
<FaDollarSign />
</button>Editor is loading...