fix: re-add removed types
This commit is contained in:
@@ -3,11 +3,11 @@
|
|||||||
import { DateTime } from 'luxon';
|
import { DateTime } from 'luxon';
|
||||||
import { Bar, BarChart, ResponsiveContainer, Tooltip, XAxis, YAxis } from 'recharts';
|
import { Bar, BarChart, ResponsiveContainer, Tooltip, XAxis, YAxis } from 'recharts';
|
||||||
|
|
||||||
import type { GetUserMonthlyGrowthResult } from '@documenso/lib/server-only/user/get-user-monthly-growth';
|
import type { GetCompletedDocumentsMonthlyResult } from '@documenso/lib/server-only/user/get-monthly-completed-document';
|
||||||
|
|
||||||
export type MonthlyCompletedDocumentsChartProps = {
|
export type MonthlyCompletedDocumentsChartProps = {
|
||||||
className?: string;
|
className?: string;
|
||||||
data: GetUserMonthlyGrowthResult;
|
data: GetCompletedDocumentsMonthlyResult;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const MonthlyCompletedDocumentsChart = ({
|
export const MonthlyCompletedDocumentsChart = ({
|
||||||
|
|||||||
@@ -3,11 +3,11 @@
|
|||||||
import { DateTime } from 'luxon';
|
import { DateTime } from 'luxon';
|
||||||
import { Bar, BarChart, ResponsiveContainer, Tooltip, XAxis, YAxis } from 'recharts';
|
import { Bar, BarChart, ResponsiveContainer, Tooltip, XAxis, YAxis } from 'recharts';
|
||||||
|
|
||||||
import type { GetUserMonthlyGrowthResult } from '@documenso/lib/server-only/user/get-user-monthly-growth';
|
import type { GetCompletedDocumentsMonthlyResult } from '@documenso/lib/server-only/user/get-monthly-completed-document';
|
||||||
|
|
||||||
export type TotalSignedDocumentsChartProps = {
|
export type TotalSignedDocumentsChartProps = {
|
||||||
className?: string;
|
className?: string;
|
||||||
data: GetUserMonthlyGrowthResult;
|
data: GetCompletedDocumentsMonthlyResult;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const TotalSignedDocumentsChart = ({ className, data }: TotalSignedDocumentsChartProps) => {
|
export const TotalSignedDocumentsChart = ({ className, data }: TotalSignedDocumentsChartProps) => {
|
||||||
|
|||||||
@@ -29,3 +29,7 @@ export const getCompletedDocumentsMonthly = async () => {
|
|||||||
cume_count: Number(row.cume_count),
|
cume_count: Number(row.cume_count),
|
||||||
}));
|
}));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type GetCompletedDocumentsMonthlyResult = Awaited<
|
||||||
|
ReturnType<typeof getCompletedDocumentsMonthly>
|
||||||
|
>;
|
||||||
|
|||||||
@@ -27,3 +27,5 @@ export const getUserMonthlyGrowth = async () => {
|
|||||||
cume_count: Number(row.cume_count),
|
cume_count: Number(row.cume_count),
|
||||||
}));
|
}));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type GetUserMonthlyGrowthResult = Awaited<ReturnType<typeof getUserMonthlyGrowth>>;
|
||||||
|
|||||||
Reference in New Issue
Block a user