diff --git a/components/Graphs/ForksChart.tsx b/components/Graphs/ForksChart.tsx index c9010c3e3..a479914c0 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: number; range: DayRange; isLoading: boolean; onCategoryClick?: (category: string) => void; @@ -35,7 +35,7 @@ type ForksChartProps = { export default function ForksChart({ stats, total, - syncId, + // syncId, range = 30, isLoading, onCategoryClick, @@ -52,7 +52,8 @@ export default function ForksChart({ switch (category) { case "daily": return ( - + // + + getDailyIssuesHistogramToDays({ stats, range }), [stats, range]); const bucketTicks = useMemo(() => getTicks({ histogram: dailyData, range }), [dailyData, range]); const { openedRangedTotal, closedRangedTotal } = useMemo( @@ -87,7 +88,8 @@ export default function IssuesChart({ stats, velocity, syncId, range = 30, isLoa {isLoading ? ( ) : ( - + // + getDailyPullRequestsHistogramToDays({ stats, range }), [stats, range]); const bucketTicks = useMemo(() => getTicks({ histogram: dailyData, range }), [dailyData, range]); const { openedRangedTotal, closedRangedTotal } = useMemo( @@ -87,7 +88,8 @@ export default function PRChart({ stats, velocity, syncId, range = 30, isLoading {isLoading ? ( ) : ( - + // + void; @@ -35,7 +35,7 @@ type StarsChartProps = { export default function StarsChart({ stats, total, - syncId, + // syncId, range = 30, isLoading, onCategoryClick, @@ -52,7 +52,8 @@ export default function StarsChart({ switch (category) { case "daily": return ( - + // + + // + @@ -599,7 +599,7 @@ export default function RepoPage({ repoData, ogImageUrl }: RepoPageProps) { stats={prStats} range={range} velocity={repoStats?.pr_velocity_count ?? 0} - syncId={syncId} + // syncId={syncId} isLoading={isPrDataLoading} /> @@ -631,7 +631,7 @@ export default function RepoPage({ repoData, ogImageUrl }: RepoPageProps) { stats={starsData} total={repoData.stars} range={range} - syncId={syncId} + // syncId={syncId} isLoading={isStarsDataLoading} onCategoryClick={(category) => posthog.capture("Repo Pages: clicked Stars Chart category", { @@ -665,7 +665,7 @@ export default function RepoPage({ repoData, ogImageUrl }: RepoPageProps) { stats={forkStats} total={repoData.forks} range={range} - syncId={syncId} + // syncId={syncId} isLoading={isForksDataLoading} onCategoryClick={(category) => posthog.capture("Repo Pages: clicked Forks Chart category", {