diff --git a/react-unterricht-todolist/src/components/TodoItem.jsx b/react-unterricht-todolist/src/components/TodoItem.jsx index 1f3222e..e181272 100644 --- a/react-unterricht-todolist/src/components/TodoItem.jsx +++ b/react-unterricht-todolist/src/components/TodoItem.jsx @@ -1,9 +1,11 @@ function TodoItem({ todo, onToggleTodo, onDeleteTodo }) { + const priorityLabels = { low: "Niedrig", normal: "Normal", high: "Hoch", }; + return (
  • + -{priorityLabels[todo.priority]} - + {priorityLabels[todo.priority]} + +