diff --git a/packages/ui/src/progress/linear-progress-indicator.tsx b/packages/ui/src/progress/linear-progress-indicator.tsx index 467285024..7cf9717a0 100644 --- a/packages/ui/src/progress/linear-progress-indicator.tsx +++ b/packages/ui/src/progress/linear-progress-indicator.tsx @@ -1,13 +1,20 @@ import React from "react"; import { Tooltip } from "../tooltip"; +import { cn } from "../../helpers"; type Props = { data: any; noTooltip?: boolean; inPercentage?: boolean; + size?: "sm" | "md" | "lg"; }; -export const LinearProgressIndicator: React.FC = ({ data, noTooltip = false, inPercentage = false }) => { +export const LinearProgressIndicator: React.FC = ({ + data, + noTooltip = false, + inPercentage = false, + size = "sm", +}) => { const total = data.reduce((acc: any, cur: any) => acc + cur.value, 0); // eslint-disable-next-line @typescript-eslint/no-unused-vars let progress = 0; @@ -23,18 +30,24 @@ export const LinearProgressIndicator: React.FC = ({ data, noTooltip = fal if (noTooltip) return
; else return ( - -
+ +
); }); return ( -
+
{total === 0 ? ( -
{bars}
+
{bars}
) : ( -
{bars}
+
{bars}
)}
); diff --git a/web/components/cycles/active-cycle-details.tsx b/web/components/cycles/active-cycle-details.tsx index b1d144d15..12d836695 100644 --- a/web/components/cycles/active-cycle-details.tsx +++ b/web/components/cycles/active-cycle-details.tsx @@ -165,7 +165,7 @@ export const ActiveCycleDetails: React.FC = observer((props

{truncateText(activeCycle.name, 70)}

- + {`${daysLeft} ${daysLeft > 1 ? "days" : "day"} left`} @@ -255,7 +255,7 @@ export const ActiveCycleDetails: React.FC = observer((props
Progress - +
{Object.keys(groupedIssues).map((group, index) => (