Fixed no longer implicit children prop in FunctionalComponent type

This commit is contained in:
Alejandro Celaya
2022-04-24 10:39:11 +02:00
parent d5b1dc5bff
commit 271b19a4ec
28 changed files with 86 additions and 80 deletions

View File

@@ -1,11 +1,11 @@
import { Card, CardHeader, CardBody, CardFooter } from 'reactstrap';
import { FC, ReactNode } from 'react';
import { FC, PropsWithChildren, ReactNode } from 'react';
import './ChartCard.scss';
interface ChartCardProps {
type ChartCardProps = PropsWithChildren<{
title: Function | string;
footer?: ReactNode;
}
}>;
export const ChartCard: FC<ChartCardProps> = ({ title, footer, children }) => (
<Card>