From 13565d9e816aea1e69c9cfd7948b7c80229cc991 Mon Sep 17 00:00:00 2001 From: corgifist Date: Wed, 30 Jul 2025 13:54:48 +0300 Subject: [PATCH] fixed some accessibility issues in the project library --- src/app/(dashboard)/page.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/(dashboard)/page.tsx b/src/app/(dashboard)/page.tsx index 748847d..740d4d5 100644 --- a/src/app/(dashboard)/page.tsx +++ b/src/app/(dashboard)/page.tsx @@ -451,7 +451,7 @@ export default function Home(): ReactNode { const [descendingSort, setDescendingSort] = useState(false); const [showDeleteSelectedAlert, setShowDeleteSelectedAlert] = useState(false); - const projects = useLiveQuery(() => ( + const projects = useLiveQuery(async () => ( db.projects.toArray() )); @@ -510,7 +510,7 @@ export default function Home(): ReactNode { @@ -563,6 +563,7 @@ export default function Home(): ReactNode { setDescendingSort(pressed)}> {descendingSort ? : } + {descendingSort ? "Switch to Ascending Sorting" : "Switch to Descending Sorting"}