website refactor
This commit is contained in:
@@ -13,7 +13,7 @@ interface DeltaChipProps {
|
||||
export function DeltaChip({ value, type = 'rank' }: DeltaChipProps) {
|
||||
if (value === 0) {
|
||||
return (
|
||||
<Group gap={1}>
|
||||
<Group gap={1} data-testid="trend-indicator">
|
||||
<Icon icon={Minus} size={3} intent="low" />
|
||||
<Text size="xs" font="mono" variant="low">0</Text>
|
||||
</Group>
|
||||
@@ -26,7 +26,7 @@ export function DeltaChip({ value, type = 'rank' }: DeltaChipProps) {
|
||||
const absoluteValue = Math.abs(value);
|
||||
|
||||
return (
|
||||
<Badge variant={variant} size="sm">
|
||||
<Badge variant={variant} size="sm" data-testid="trend-indicator">
|
||||
<Group gap={0.5}>
|
||||
<Icon icon={IconComponent} size={3} />
|
||||
<Text size="xs" font="mono" weight="bold">
|
||||
|
||||
Reference in New Issue
Block a user