Migrated SortableBarChartCard test to react testing library

This commit is contained in:
Alejandro Celaya
2022-07-11 18:26:52 +02:00
parent 3d067371d3
commit 9b9cfd0543
3 changed files with 1277 additions and 84 deletions

View File

@@ -8,7 +8,7 @@ type ChartCardProps = PropsWithChildren<{
}>;
export const ChartCard: FC<ChartCardProps> = ({ title, footer, children }) => (
<Card>
<Card role="document">
<CardHeader className="chart-card__header">{typeof title === 'function' ? title() : title}</CardHeader>
<CardBody>{children}</CardBody>
{footer && <CardFooter className="chart-card__footer--sticky">{footer}</CardFooter>}