Initial version of run-report

This commit is contained in:
2022-09-20 13:00:47 -05:00
parent f1300d2db9
commit 734c2b4ea0
7 changed files with 248 additions and 28 deletions

View File

@ -29,6 +29,7 @@ import MDTypography from "qqq/components/Temporary/MDTypography";
interface Props
{
color?: "primary" | "secondary" | "info" | "success" | "warning" | "error" | "light" | "dark";
isReport?: boolean;
title: string;
percentage?: {
color: "primary" | "secondary" | "info" | "success" | "warning" | "error" | "dark" | "white";
@ -41,7 +42,7 @@ interface Props
}
function ProcessLinkCard({
color, title, percentage, icon,
color, isReport, title, percentage, icon,
}: Props): JSX.Element
{
return (
@ -81,10 +82,11 @@ function ProcessLinkCard({
>
{percentage.amount}
</MDTypography>
Click here to run the process called
{" "}
{title}
.
{
isReport
? `Click here to run the process called ${title}.`
: `Click here to access the ${title} report.`
}
{percentage.label}
</MDTypography>
</MDBox>
@ -94,6 +96,7 @@ function ProcessLinkCard({
ProcessLinkCard.defaultProps = {
color: "info",
isReport: false,
percentage: {
color: "success",
text: "",