File tree Expand file tree Collapse file tree 3 files changed +10
-5
lines changed
app/packages/[group]/[name] Expand file tree Collapse file tree 3 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 11import type { Metadata , ResolvingMetadata } from "next" ;
22import { notFound } from "next/navigation" ;
33import { getHasuraClient } from "~/app/_lib/hasuraClient" ;
4- import { Pack } from "../_components/pack " ;
4+ import { PackageDetails } from "../_components/package-details " ;
55
66export const revalidate = 86400 ; // 1 day
77
@@ -36,7 +36,7 @@ export default async function Page(props: { params: Params }) {
3636 }
3737
3838 return (
39- < Pack
39+ < PackageDetails
4040 pack = { data . packages [ 0 ] }
4141 numVersion = { data . packages_aggregate ?. aggregate ?. count ?? 0 }
4242 />
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import { SectionHeader } from "~/app/_components/section-header";
2020import { StatItem } from "~/app/_components/stat-item" ;
2121import type { GetPackageByNameAndVersionQuery } from "~/graphql" ;
2222
23- export function Pack ( {
23+ export function PackageDetails ( {
2424 pack,
2525 numVersion,
2626} : {
Original file line number Diff line number Diff line change 11import type { Metadata , ResolvingMetadata } from "next" ;
22import { notFound } from "next/navigation" ;
33import { getHasuraClient } from "~/app/_lib/hasuraClient" ;
4- import { Pack } from "./_components/pack " ;
4+ import { PackageDetails } from "./_components/package-details " ;
55
66export const revalidate = 86400 ; // 1 day
77
@@ -38,5 +38,10 @@ export default async function Page(props: { params: Params }) {
3838 return semver . rcompare ( a . version , b . version ) ;
3939 } ) ;
4040
41- return < Pack pack = { data . packages [ 0 ] } numVersion = { data . packages . length } /> ;
41+ return (
42+ < PackageDetails
43+ pack = { data . packages [ 0 ] }
44+ numVersion = { data . packages . length }
45+ />
46+ ) ;
4247}
You can’t perform that action at this time.
0 commit comments