From 7f54bdce30beef04edbfdf0fcd1a86ebb022121e Mon Sep 17 00:00:00 2001 From: Sam Nolan Date: Mon, 30 May 2022 13:23:12 +1000 Subject: [PATCH] Fix typescript errors about children --- packages/components/src/components/DistributionChart.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/components/src/components/DistributionChart.tsx b/packages/components/src/components/DistributionChart.tsx index a6f70fa0..12a4cf1e 100644 --- a/packages/components/src/components/DistributionChart.tsx +++ b/packages/components/src/components/DistributionChart.tsx @@ -164,10 +164,10 @@ const SummaryTable: React.FC = ({ } }; - let TableHeadCell: React.FC<{}> = ({ children }) => ( - {children} - ); - let Cell: React.FC<{}> = ({ children }) => ( + let TableHeadCell: React.FC<{ children: React.ReactNode }> = ({ + children, + }) => {children}; + let Cell: React.FC<{ children: React.ReactNode }> = ({ children }) => ( {children} );