Replace numeric prop values with named react-zen values.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
f66a508892
commit
7cafc3e61d
23 files changed
+65
-46
No files matched your search
@@ -1,4 +1,4 @@
|
||||
import { Column, FloatingTooltip, Row, StatusLight } from '@umami/react-zen';
|
||||
import { Column, FloatingTooltip, Row, StatusLight, Text } from '@umami/react-zen';
|
||||
import type { ReactNode } from 'react';
|
||||
|
||||
export function ChartTooltip({
|
||||
@@ -12,10 +12,18 @@ export function ChartTooltip({
|
||||
}) {
|
||||
return (
|
||||
<FloatingTooltip>
|
||||
<Column gap="3" fontSize="1">
|
||||
{title && <Row alignItems="center">{title}</Row>}
|
||||
<Column
|
||||
gap="3"
|
||||
backgroundColor="surface-inverted"
|
||||
color="inverted"
|
||||
padding="4"
|
||||
borderRadius="md"
|
||||
>
|
||||
{title && <Text size="sm">{title}</Text>}
|
||||
<Row alignItems="center">
|
||||
<StatusLight color={color}>{value}</StatusLight>
|
||||
<StatusLight color={color}>
|
||||
<Text size="sm">{value}</Text>
|
||||
</StatusLight>
|
||||
</Row>
|
||||
</Column>
|
||||
</FloatingTooltip>
|
||||
|
||||
Reference in new issue
Block a user