From de551a0608fe4e9f5038b5ccf2b316c8fccbc36b Mon Sep 17 00:00:00 2001 From: Kasper Juul Hermansen Date: Thu, 18 Nov 2021 17:03:03 +0100 Subject: [PATCH] Update hide description --- src/client/src/components/todos/todoList.tsx | 3 ++- src/client/src/pages/index.tsx | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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 /> ))}