Add "..." indicator if tasks length is greater than 5
This commit is contained in:
1 parent
cc5480322c
commit
40c64d3983
1 file changed
+3
@@ -27,6 +27,9 @@ function Event({event}){
|
||||
.map((task, index) => (
|
||||
<li key={index}> - {task.name}</li>
|
||||
))}
|
||||
{event.tasks.length > 5 ? (
|
||||
<li>...</li>
|
||||
) : null}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user