SPRINT-18: minor style change on inputs for padding, updated for statistics titles to come from widget meta data

This commit is contained in:
Tim Chamberlain
2023-01-12 20:08:21 -06:00
parent 08def2353e
commit f3cf89cf1c
3 changed files with 17 additions and 3 deletions

View File

@ -42,6 +42,7 @@ export interface StatisticsCardData
/////////////////////////
interface Props
{
title: string
data: StatisticsCardData;
color?: "primary" | "secondary" | "info" | "success" | "warning" | "error" | "light" | "dark";
icon: ReactNode;
@ -60,9 +61,9 @@ StatisticsCard.defaultProps = {
increaseIsGood: true
};
function StatisticsCard({data, color, icon, increaseIsGood}: Props): JSX.Element
function StatisticsCard({title, data, color, icon, increaseIsGood}: Props): JSX.Element
{
const {title, count, percentageAmount, percentageLabel} = data;
const {count, percentageAmount, percentageLabel} = data;
let percentageString = "";
if (percentageAmount)