From 145abc0e51a1a25620ce55ff5044cf549232dd1f Mon Sep 17 00:00:00 2001 From: Ephraim Atta-Duncan Date: Sun, 6 Aug 2023 23:01:33 +0000 Subject: [PATCH] --amend --- .../src/app/(marketing)/open/cap-table.tsx | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/apps/marketing/src/app/(marketing)/open/cap-table.tsx b/apps/marketing/src/app/(marketing)/open/cap-table.tsx index 214d14e03..5bdea46c4 100644 --- a/apps/marketing/src/app/(marketing)/open/cap-table.tsx +++ b/apps/marketing/src/app/(marketing)/open/cap-table.tsx @@ -9,9 +9,24 @@ import { cn } from '@documenso/ui/lib/utils'; import { CAP_TABLE } from './data'; const COLORS = ['#7fd843', '#a2e771', '#c6f2a4']; - const RADIAN = Math.PI / 180; -const renderCustomizedLabel = ({ cx, cy, midAngle, innerRadius, outerRadius, percent, index }) => { + +export type LabelRenderProps = { + cx: number; + cy: number; + midAngle: number; + innerRadius: number; + outerRadius: number; + percent: number; +}; +const renderCustomizedLabel = ({ + cx, + cy, + midAngle, + innerRadius, + outerRadius, + percent, +}: LabelRenderProps) => { const radius = innerRadius + (outerRadius - innerRadius) * 0.25; const x = cx + radius * Math.cos(-midAngle * RADIAN); const y = cy + radius * Math.sin(-midAngle * RADIAN); @@ -22,6 +37,7 @@ const renderCustomizedLabel = ({ cx, cy, midAngle, innerRadius, outerRadius, per ); }; + export type CapTableProps = HTMLAttributes; export const CapTable = ({ className, ...props }: CapTableProps) => {