diff --git a/components/Graphs/ForksChart.tsx b/components/Graphs/ForksChart.tsx index c9010c3e3..0360b94a0 100644 --- a/components/Graphs/ForksChart.tsx +++ b/components/Graphs/ForksChart.tsx @@ -25,7 +25,7 @@ import humanizeNumber from "lib/utils/humanizeNumber"; type ForksChartProps = { stats: StatsType[] | undefined; total: number; - syncId: number; + syncId: string; range: DayRange; isLoading: boolean; onCategoryClick?: (category: string) => void; @@ -88,35 +88,35 @@ export default function ForksChart({ return ( -
+
{isLoading ? ( ) : ( <>
-
+
-
+

Forks

-

{range} days

+

{range} days

-
+
-
+
-
-
+
+
{ posthog.capture("Repo Pages: copied Contributor Confidence chart", { @@ -453,7 +459,7 @@ export default function RepoPage({ repoData, ogImageUrl }: RepoPageProps) {
-
+
{lotteryState === "lottery" && ( { @@ -572,7 +578,7 @@ export default function RepoPage({ repoData, ogImageUrl }: RepoPageProps) { stats={issueStats} range={range} velocity={repoStats?.issues_velocity_count ?? 0} - syncId={syncId} + syncId={issuesChartSyncId} isLoading={isIssueDataLoading} /> @@ -599,7 +605,7 @@ export default function RepoPage({ repoData, ogImageUrl }: RepoPageProps) { stats={prStats} range={range} velocity={repoStats?.pr_velocity_count ?? 0} - syncId={syncId} + syncId={prChartSyncId} isLoading={isPrDataLoading} /> @@ -631,7 +637,7 @@ export default function RepoPage({ repoData, ogImageUrl }: RepoPageProps) { stats={starsData} total={repoData.stars} range={range} - syncId={syncId} + syncId={startsChartSyncId} isLoading={isStarsDataLoading} onCategoryClick={(category) => posthog.capture("Repo Pages: clicked Stars Chart category", { @@ -665,7 +671,7 @@ export default function RepoPage({ repoData, ogImageUrl }: RepoPageProps) { stats={forkStats} total={repoData.forks} range={range} - syncId={syncId} + syncId={forksChartSyncId} isLoading={isForksDataLoading} onCategoryClick={(category) => posthog.capture("Repo Pages: clicked Forks Chart category", {