diff --git a/src/client/src/components/todos/todoList.tsx b/src/client/src/components/todos/todoList.tsx index 55cc364..8f0042b 100644 --- a/src/client/src/components/todos/todoList.tsx +++ b/src/client/src/components/todos/todoList.tsx @@ -6,6 +6,7 @@ import { useUpdateTodoState } from "@src/presentation/hooks/socketHooks"; export const TodoList = (props: { todos: Todo[]; hideDone: boolean; + hideProject: boolean; project: string; }) => { const { updateTodoState } = useUpdateTodoState(); @@ -22,7 +23,7 @@ export const TodoList = (props: { updateTodo={(todo) => { updateTodoState(todo.id, todo.status); }} - displayProject + displayProject={!props.hideProject} /> ))} diff --git a/src/client/src/pages/index.tsx b/src/client/src/pages/index.tsx index 07b209d..1156445 100644 --- a/src/client/src/pages/index.tsx +++ b/src/client/src/pages/index.tsx @@ -34,7 +34,7 @@ const HomePage = () => { {groupedTodos["inbox"] && (
- +
)} {sections && @@ -45,6 +45,7 @@ const HomePage = () => { todos={groupedTodos[section]} hideDone project={section} + hideProject /> ))}