From d0c325c1f8baf7ddfcc465602ada06d2a5e589fe Mon Sep 17 00:00:00 2001 From: Chris <125088905+wyattchris@users.noreply.github.com> Date: Wed, 17 Apr 2024 12:40:33 -0400 Subject: [PATCH] fix: sortby fix --- client/components/calendar/TaskInfoCard.tsx | 5 ++++- client/screens/TaskList.tsx | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/client/components/calendar/TaskInfoCard.tsx b/client/components/calendar/TaskInfoCard.tsx index a912189..d912330 100644 --- a/client/components/calendar/TaskInfoCard.tsx +++ b/client/components/calendar/TaskInfoCard.tsx @@ -100,7 +100,10 @@ export function TaskInfoComponent({ {CategoryIconsMap[TypeToCategoryMap[task?.task_type ?? 'Other']]} diff --git a/client/screens/TaskList.tsx b/client/screens/TaskList.tsx index 6e3b5e9..be419e9 100644 --- a/client/screens/TaskList.tsx +++ b/client/screens/TaskList.tsx @@ -55,6 +55,8 @@ export default function TaskListScreen() { ); const { roles } = useGroup(userGroup.groupID); const { users } = useUsers(roles?.map((role) => role.user_id) || []); + const [sortBy, setSortBy] = useState('All Tasks'); + console.log(sortBy); // Filter tasks based on search query in multiple fields and labels const filteredTasks = tasks?.filter((task) => {