mirror of
https://github.com/documenso/documenso.git
synced 2025-11-12 07:43:16 +10:00
chore: fix ts errors in metrics
This commit is contained in:
committed by
Mythie
parent
3407952a5e
commit
07492100d2
@ -11,12 +11,14 @@ import { StargazersType } from './page';
|
||||
|
||||
export type GithubMetricProps = HTMLAttributes<HTMLDivElement> & {
|
||||
data: StargazersType;
|
||||
metricKey: keyof StargazersType;
|
||||
metricKey: MetricsDataKey;
|
||||
title: string;
|
||||
label: string;
|
||||
chartHeight?: number;
|
||||
};
|
||||
|
||||
export type MetricsDataKey = 'stars' | 'forks' | 'mergedPRs' | 'openIssues';
|
||||
|
||||
export const GithubMetric = ({
|
||||
className,
|
||||
data,
|
||||
|
||||
Reference in New Issue
Block a user