Fix typescript errors about children

This commit is contained in:
Sam Nolan 2022-05-30 13:23:12 +10:00
parent ed6eb54165
commit 7f54bdce30

View File

@ -164,10 +164,10 @@ const SummaryTable: React.FC<SummaryTableProps> = ({
}
};
let TableHeadCell: React.FC<{}> = ({ children }) => (
<th className="border border-slate-400 bg-slate-50 p-4">{children}</th>
);
let Cell: React.FC<{}> = ({ children }) => (
let TableHeadCell: React.FC<{ children: React.ReactNode }> = ({
children,
}) => <th className="border border-slate-400 bg-slate-50 p-4">{children}</th>;
let Cell: React.FC<{ children: React.ReactNode }> = ({ children }) => (
<td className="border border-slate-400 p-4">{children}</td>
);