add explore

This commit is contained in:
2025-12-19 16:51:18 -03:00
parent 5959287fea
commit 9e4c97e7dd
8 changed files with 268 additions and 157 deletions

View File

@@ -13,7 +13,7 @@ import {
CheckIcon,
BookIcon,
ArrowDownAZIcon,
ArrowDownZAIcon,
ArrowUpAZIcon,
AlertTriangleIcon,
UserIcon
} from 'lucide-react'
@@ -95,6 +95,7 @@ export async function loader({ context }: Route.LoaderArgs) {
export async function action({ params, request, context }: Route.ActionArgs) {
const body = (await request.json()) as object
const r = await req({
url: `enrollments`,
headers: new Headers({ 'Content-Type': 'application/json' }),
@@ -508,7 +509,7 @@ function FacetedFilter({
className="cursor-pointer text-muted-foreground"
onClick={toggle}
>
{sort == 'a-z' ? <ArrowDownAZIcon /> : <ArrowDownZAIcon />}
{sort == 'a-z' ? <ArrowDownAZIcon /> : <ArrowUpAZIcon />}
</Button>
</div>
</div>