diff --git a/app/publications/page.tsx b/app/publications/page.tsx index ffb29b6..a293372 100644 --- a/app/publications/page.tsx +++ b/app/publications/page.tsx @@ -3,7 +3,7 @@ import { Link } from "@nextui-org/link"; import { useSearchParams } from "next/navigation"; -import { publications } from "@/config/publications"; +import { publications, Tag } from "@/config/publications"; import { PublicationTags } from "@/components/tag"; function Links({ paper, code, page }: { paper: string, code: string | null; page: string | null }) { @@ -21,11 +21,12 @@ export default function PublicationsPage() { const searchParams = useSearchParams(); const direction = searchParams.get("tag"); + const direction_tag = Tag[direction as keyof typeof Tag]; let publications_filtered = publications; if (direction !== null) { publications_filtered = publications.filter((publication) => - publication.tags.includes(direction as any), + publication.tags.includes(direction_tag), ); } diff --git a/config/publications.ts b/config/publications.ts index cb86701..a6429ec 100644 --- a/config/publications.ts +++ b/config/publications.ts @@ -12,10 +12,12 @@ export interface Publication { page: string | null; paper: string; code: string | null; + abstract: string; + impact: string; tags: Tag[]; } -export const publications = [ +export const publications: Publication[] = [ { title: "Lorentzian Residual Neural Networks", authors: "Neil He, Menglin Yang, Rex Ying",