diff --git a/app/languages/[language]/page.tsx b/app/languages/[language]/page.tsx index 6f20a94..c418fca 100644 --- a/app/languages/[language]/page.tsx +++ b/app/languages/[language]/page.tsx @@ -11,7 +11,7 @@ export default function LanguagesPage(props: LanguagesPageProps) { ); } diff --git a/app/translators/[id]/page.tsx b/app/translators/[id]/page.tsx index 14011bc..2c18f07 100644 --- a/app/translators/[id]/page.tsx +++ b/app/translators/[id]/page.tsx @@ -12,7 +12,7 @@ export default function TranslatorsPage(props: TranslatorsPageProps) { facetingField="contains.translators.name" // FIXME ugly facetingValue={props.params ? decodeURI(props.params.id) : undefined} - path="translators" + path="translator" /> ); } diff --git a/app/works/[category]/[work]/page.tsx b/app/works/[category]/[work]/page.tsx index 545b0fa..fbd50ae 100644 --- a/app/works/[category]/[work]/page.tsx +++ b/app/works/[category]/[work]/page.tsx @@ -55,8 +55,7 @@ export default function WorksPage(props: WorksPageProps) { // eslint-disable-next-line @typescript-eslint/no-explicit-any `contains.work.category := ${catt(props.params?.category as any)}` } - // eslint-disable-next-line @typescript-eslint/restrict-template-expressions - path={`works/${props.params?.category}`} + path={`work`} /> ); diff --git a/components/simple-listing.tsx b/components/simple-listing.tsx index 72e7ca1..984cc1c 100644 --- a/components/simple-listing.tsx +++ b/components/simple-listing.tsx @@ -1,7 +1,6 @@ import { getFaceted } from "@/lib/data"; import { AppNavLink } from "./app-nav-link"; -import { InstantSearch } from "./instantsearch"; import { MainContent } from "./main-content"; export interface SimpleListingProps { @@ -15,19 +14,16 @@ export async function SimpleListing(props: SimpleListingProps) { // eslint-disable-next-line @typescript-eslint/no-non-null-assertion const counts = (await getFaceted(props.facetingField, props.filter_by)).facet_counts?.[0]!.counts; return ( - -
- {counts?.map((c) => { - return ( -
  • - - {c.value} ({c.count}) - -
  • - ); - })} -
    -
    {props.facetingValue ? : null}
    + + {counts?.map((c) => { + return ( +
    + + {c.value} ({c.count}) + +
    + ); + })}
    ); }