Skip to content

Commit

Permalink
fix: sortby fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wyattchris committed Apr 17, 2024
1 parent 27e1d85 commit d0c325c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion client/components/calendar/TaskInfoCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,10 @@ export function TaskInfoComponent({
</View>
<View className="space-y-2">
<View
className={`mr-auto flex flex-row items-center space-x-2 rounded-full border bg-${categoryToBGColor(category)} border-carewallet-lightgray px-2 py-1`}
className={clsx(
'mr-auto flex flex-row items-center space-x-2 rounded-full border border-carewallet-lightgray px-2 py-1',
categoryToBGColor(task?.task_type ?? 'Other')
)}
>
<View>
{CategoryIconsMap[TypeToCategoryMap[task?.task_type ?? 'Other']]}
Expand Down
2 changes: 2 additions & 0 deletions client/screens/TaskList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit d0c325c

Please sign in to comment.