Polish quiz completion UX, room PNG backgrounds, and habits list order
Polish quiz completion UX, rooms, and app layout.
This commit is contained in:
@@ -63,20 +63,9 @@ function DailyTaskList({
|
||||
);
|
||||
}
|
||||
|
||||
const sortedTasks = [...tasks].sort((a, b) => {
|
||||
const aCompleted = getIsCompleted(a);
|
||||
const bCompleted = getIsCompleted(b);
|
||||
|
||||
if (aCompleted === bCompleted) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return aCompleted ? 1 : -1;
|
||||
});
|
||||
|
||||
return (
|
||||
<>
|
||||
{sortedTasks.map((habit) => {
|
||||
{tasks.map((habit) => {
|
||||
const isCompleted = getIsCompleted(habit);
|
||||
const pending = isPending(habit.id);
|
||||
const toggleError = getToggleError(habit.id);
|
||||
|
||||
Reference in New Issue
Block a user