INNER CODE UNIT · JavaScript
timelineItems
mongodb-developer/FARM-Intro · frontend/src/App.js:22
const timelineItems = [...tasks].reverse().map((task) =>
task.completed
? {
dot: <CheckCircleOutlined />,
color: "green",
children: (
<span style={{ textDecoration: "line-through", color: "green" }}>
{task.name} <small>({task._id})</small>
</span>
),
}
: {
dot: <MinusCircleOutlined />,
color: "blue",
children: (
<span>
{task.name} <small>({task._id})</small>
</span>