fix: typo

This commit is contained in:
Ephraim Atta-Duncan
2024-11-13 17:53:10 +00:00
parent 65e09fa4bf
commit 3fc4d24cef
2 changed files with 6 additions and 6 deletions

View File

@ -294,7 +294,7 @@ export default async function OpenPage() {
className="col-span-12 lg:col-span-6"
title={_(msg`Total Signers that Signed Up`)}
data={MONTHLY_SIGNER_CONVERSION}
cummulative
cumulative
/>
</div>
</div>

View File

@ -8,7 +8,7 @@ import type { GetSignerConversionMonthlyResult } from '@documenso/lib/server-onl
export type SignerConversionChartProps = {
className?: string;
title: string;
cummulative?: boolean;
cumulative?: boolean;
data: GetSignerConversionMonthlyResult;
};
@ -16,7 +16,7 @@ export const SignerConversionChart = ({
className,
data,
title,
cummulative = false,
cumulative = false,
}: SignerConversionChartProps) => {
const formattedData = [...data].reverse().map(({ month, count, cume_count }) => {
return {
@ -44,17 +44,17 @@ export const SignerConversionChart = ({
}}
formatter={(value) => [
Number(value).toLocaleString('en-US'),
cummulative ? 'Total Signers' : 'Monthly Signers',
cumulative ? 'Total Signers' : 'Monthly Signers',
]}
cursor={{ fill: 'hsl(var(--primary) / 10%)' }}
/>
<Bar
dataKey={cummulative ? 'signed_count' : 'count'}
dataKey={cumulative ? 'signed_count' : 'count'}
fill="hsl(var(--primary))"
radius={[4, 4, 0, 0]}
maxBarSize={60}
name={cummulative ? 'Total Signers' : 'Monthly Signers'}
name={cumulative ? 'Total Signers' : 'Monthly Signers'}
/>
</BarChart>
</ResponsiveContainer>