Update colors

This commit is contained in:
april
2024-01-08 13:12:16 -06:00
parent c4f990ea19
commit 921a3be6b2
3 changed files with 33 additions and 21 deletions

View File

@@ -27,6 +27,7 @@ export function VerticalLogItem({
time = false,
date = false,
list = false,
listColor = "",
}: {
label: string;
content: string | string[] | null;
@@ -35,6 +36,7 @@ export function VerticalLogItem({
time?: boolean;
date?: boolean;
list?: boolean;
listColor?: string;
}) {
if (content === null) content = "";
if (decimal > 0) content = Number(content).toFixed(decimal);
@@ -56,7 +58,7 @@ export function VerticalLogItem({
{(content as string[]).length > 0 ? (
<Text size="lg">
{(content as string[]).map((item) => (
<Badge key={randomId()} size="lg" mx="xs">
<Badge key={randomId()} size="lg" mx="xs" color={listColor}>
{item}
</Badge>
))}