Skip to content

Commit

Permalink
Finish search page
Browse files Browse the repository at this point in the history
  • Loading branch information
ken-matsui committed Dec 26, 2023
1 parent e46e083 commit e42f94e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion app/search/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
TableCell,
Pagination,
} from "@nextui-org/react";
import NextLink from "next/link";

export default function Search() {
const router = useRouter();
Expand Down Expand Up @@ -101,7 +102,12 @@ export default function Search() {
</TableHeader>
<TableBody emptyContent={"No packages to display."}>
{packages.map((pkg) => (
<TableRow key={pkg["id"]}>
<TableRow
key={pkg["id"]}
as={NextLink}
href={`/packages/${pkg["name"]}/${pkg["version"]}`}
className="hover:cursor-pointer"
>
<TableCell>{pkg["name"]}</TableCell>
<TableCell>{pkg["version"]}</TableCell>
<TableCell>{pkg["edition"]}</TableCell>
Expand Down

0 comments on commit e42f94e

Please sign in to comment.