app\src\static\app.js #56 "you have no todo items yet! Add one above"

This commit is contained in:
MaolinPan 2021-06-10 21:32:07 +08:00
parent 1825b4c553
commit a2e7cddbb1
1 changed files with 2 additions and 2 deletions

View File

@ -52,8 +52,8 @@ function TodoListCard() {
return (
<React.Fragment>
<AddItemForm onNewItem={onNewItem} />
{items.length === 0 && (
<p className="text-center">No items yet! Add one above!</p>
{items.length === 0 && (
<p className="text-center">You have no todo items yet! Add one above!</p>
)}
{items.map(item => (
<ItemDisplay