diff --git a/components/pages/todos/ToDoItem.tsx b/components/pages/todos/ToDoItem.tsx index 1fa1e8b..a72dc05 100644 --- a/components/pages/todos/ToDoItem.tsx +++ b/components/pages/todos/ToDoItem.tsx @@ -17,7 +17,7 @@ import AddChoreDialog from "@/components/pages/todos/AddChoreDialog"; const ToDoItem = (props: { item: IToDo; isSettings?: boolean }) => { const { updateToDo } = useToDosContext(); - const [editing, setEditing] = useState(false); + const [visible, setVisible] = useState(false); const [points, setPoints] = useState(props.item.points); const [pointsModalVisible, setPointsModalVisible] = useState(false); @@ -42,7 +42,7 @@ const ToDoItem = (props: { item: IToDo; isSettings?: boolean }) => { opacity: props.item.done ? 0.3 : 1, }} > - + {visible && } { fontSize: 15, }} onPress={() => { - setEditing(true); + setVisible(true); }} > {props.item.title}